aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/routes.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-02-15 14:30:44 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-02-15 14:30:44 -0800
commit3d7d90fae8550b061c75de27bad5b9ed86bd3d92 (patch)
treed17eccad3d5c0c1bc918ebeb46d63edf7813f458 /python/fatcat_web/routes.py
parent063be7d54099f4899ffa66f421b1a0e107646b3c (diff)
downloadfatcat-3d7d90fae8550b061c75de27bad5b9ed86bd3d92.tar.gz
fatcat-3d7d90fae8550b061c75de27bad5b9ed86bd3d92.zip
container browse: refactor count data structure to fix sorting
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r--python/fatcat_web/routes.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index f8182679..0f847cca 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -393,10 +393,10 @@ def container_view_browse(ident: str) -> AnyResponse:
query_string = f"year:{year}"
query_sort = ["release_date"]
else:
- entity._browse_volume_year = get_elastic_container_browse_year_volume_issue(
+ entity._browse_year_volume_issue = get_elastic_container_browse_year_volume_issue(
entity.ident
)
- print(entity._browse_volume_year)
+ # print(entity._browse_year_volume_issue)
return render_template(
"container_view_browse.html",
entity_type="container",
@@ -404,7 +404,7 @@ def container_view_browse(ident: str) -> AnyResponse:
editgroup_id=None,
)
- print(query_string)
+ # print(query_string)
query = ReleaseQuery(
q=query_string,
limit=200,
@@ -1093,7 +1093,7 @@ def release_search() -> AnyResponse:
container_found = None
filter_only_query = True
for p in request.args.get("q", "").split():
- if not ":" in p:
+ if ":" not in p:
filter_only_query = False
break
if request.args.get("generic") and not filter_only_query: