diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-24 16:24:32 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-24 16:24:34 -0800 |
commit | 34839845429e066b5c44a19fba95711b14c196e2 (patch) | |
tree | 9a703a934db85a8ac0694ea10900ec702a2e82e0 /python/fatcat_web | |
parent | 8b2590b32e7b6bd2bfa518ec59c492dd48f8047f (diff) | |
download | fatcat-34839845429e066b5c44a19fba95711b14c196e2.tar.gz fatcat-34839845429e066b5c44a19fba95711b14c196e2.zip |
remove unused postgres-backed stats stuff
Will replace with elasticsearch-based dash in webface
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/routes.py | 8 | ||||
-rw-r--r-- | python/fatcat_web/templates/stats.html | 104 |
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 %} |