summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/routes.py8
-rw-r--r--python/fatcat_web/templates/stats.html104
2 files changed, 0 insertions, 112 deletions
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 %}
-
-<h1>Entity Statistics</h1>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.entity_counts.work }}
- </div>
- <div class="label">
- Works
- </div>
-</div>
-
-<br>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.entity_counts.release }}
- </div>
- <div class="label">
- Releases
- </div>
-</div>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.releases_with_dois }}
- </div>
- <div class="label">
- ... with DOIs
- </div>
-</div>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.releases_with_dois }}
- </div>
- <div class="label">
- ... with a File
- </div>
-</div>
-
-<br>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.entity_counts.container }}
- </div>
- <div class="label">
- Containers
- </div>
-</div>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.containers_with_issnls }}
- </div>
- <div class="label">
- ... with an ISSN-L
- </div>
-</div>
-
-<br>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.entity_counts.creator }}
- </div>
- <div class="label">
- Creators
- </div>
-</div>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.creators_with_orcids }}
- </div>
- <div class="label">
- ... with an ORCID
- </div>
-</div>
-
-<br>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.entity_counts.file }}
- </div>
- <div class="label">
- Files
- </div>
-</div>
-
-<div class="ui statistic">
- <div class="value">
- {{ stats.files_with_releases }}
- </div>
- <div class="label">
- ... with a Release
- </div>
-</div>
-
-{% endblock %}