diff --git a/web/handlers/genomics/general.py b/web/handlers/genomics/general.py index 242d75bb..977ae079 100644 --- a/web/handlers/genomics/general.py +++ b/web/handlers/genomics/general.py @@ -117,7 +117,7 @@ def _get(self): query_obj = create_nested_mutation_query(lineages = query_pangolin_lineage, mutations = query_mutations, location_id = query_location) query["query"] = query_obj resp = yield self.asynchronous_fetch(query) - print(resp) + #print(resp) path_to_results = ["aggregations", "date_collected", "buckets"] buckets = resp for i in path_to_results: diff --git a/web/handlers/genomics/gisaid_auth.py b/web/handlers/genomics/gisaid_auth.py index 41127972..0668c655 100644 --- a/web/handlers/genomics/gisaid_auth.py +++ b/web/handlers/genomics/gisaid_auth.py @@ -53,7 +53,7 @@ async def wrapper(self: RequestHandler, *args, **kwargs) -> Optional[Awaitable[N self.write({"message": "Invalid token. Please authenticate!"}) return self.finish() token_diff_time = (dt.now(timezone.utc) - dt.utcfromtimestamp(decoded_token["last_checked"]).replace(tzinfo=timezone.utc)).seconds - print(token_diff_time) + #print(token_diff_time) reset_last_checked = False # False only if cache expired and token is unauthenticated if token_diff_time <= CACHE_TIME: # Cached token if decoded_token["is_authenticated"]: # Authenticated diff --git a/web/handlers/genomics/lineage.py b/web/handlers/genomics/lineage.py index 90c360b1..12eb71cd 100644 --- a/web/handlers/genomics/lineage.py +++ b/web/handlers/genomics/lineage.py @@ -190,7 +190,7 @@ def _get(self): if len(query_lineage_split) > 1: query_mutations = query_lineage_split[1:] # First parameter is always lineage query["query"] = create_nested_mutation_query(lineages = query_pangolin_lineage, mutations = query_mutations) - print(query) + #print(query) resp = yield self.asynchronous_fetch(query) path_to_results = ["aggregations", "mutations", "mutations", "buckets"] buckets = resp diff --git a/web/handlers/genomics/prevalence.py b/web/handlers/genomics/prevalence.py index 5c5f1938..520d7b30 100644 --- a/web/handlers/genomics/prevalence.py +++ b/web/handlers/genomics/prevalence.py @@ -82,7 +82,7 @@ def _get(self): parse_location_id_to_query(query_location, query["aggs"]["prevalence"]["filter"]) lineages = i.split(" OR ") if i is not None else [] query_obj = create_nested_mutation_query(lineages = lineages, mutations = j, location_id = query_location) - print(query_obj) + #print(query_obj) query["aggs"]["prevalence"]["aggs"]["count"]["aggs"]["lineage_count"]["filter"] = query_obj resp = yield self.asynchronous_fetch(query) path_to_results = ["aggregations", "prevalence", "count", "buckets"]