From 34839845429e066b5c44a19fba95711b14c196e2 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 24 Dec 2018 16:24:32 -0800 Subject: remove unused postgres-backed stats stuff Will replace with elasticsearch-based dash in webface --- python/fatcat_web/routes.py | 8 --- python/fatcat_web/templates/stats.html | 104 --------------------------------- 2 files changed, 112 deletions(-) delete mode 100644 python/fatcat_web/templates/stats.html (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 0a1ea2c6..998697bc 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -343,14 +343,6 @@ def changelog_entry_view(index): abort(ae.status) return render_template('changelog_view.html', entry=entry, editgroup=entry.editgroup) -@app.route('/stats', methods=['GET']) -def stats_view(): - try: - stats = api.get_stats() - except ApiException as ae: - abort(ae.status) - return render_template('stats.html', stats=stats.extra) - ### Search ################################################################## @app.route('/release/search', methods=['GET', 'POST']) diff --git a/python/fatcat_web/templates/stats.html b/python/fatcat_web/templates/stats.html deleted file mode 100644 index 6a37dcee..00000000 --- a/python/fatcat_web/templates/stats.html +++ /dev/null @@ -1,104 +0,0 @@ -{% extends "base.html" %} -{% block body %} - -

Entity Statistics

- -
-
- {{ stats.entity_counts.work }} -
-
- Works -
-
- -
- -
-
- {{ stats.entity_counts.release }} -
-
- Releases -
-
- -
-
- {{ stats.releases_with_dois }} -
-
- ... with DOIs -
-
- -
-
- {{ stats.releases_with_dois }} -
-
- ... with a File -
-
- -
- -
-
- {{ stats.entity_counts.container }} -
-
- Containers -
-
- -
-
- {{ stats.containers_with_issnls }} -
-
- ... with an ISSN-L -
-
- -
- -
-
- {{ stats.entity_counts.creator }} -
-
- Creators -
-
- -
-
- {{ stats.creators_with_orcids }} -
-
- ... with an ORCID -
-
- -
- -
-
- {{ stats.entity_counts.file }} -
-
- Files -
-
- -
-
- {{ stats.files_with_releases }} -
-
- ... with a Release -
-
- -{% endblock %} -- cgit v1.2.3