Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 1366a763 authored by Jerome Touvier's avatar Jerome Touvier
Browse files

Merge branch 'update' into 'master'

fix bug with big number

See merge request !13
parents bf30c14d ea2a1da9
Pipeline #49336 passed with stage
in 46 seconds
......@@ -73,13 +73,13 @@ def sql_request(params):
table = "sent_data_summary_weekly"
if params["request"] == "country":
if "all" in params["country"]:
s = f"SELECT sum(requests)::INTEGER, sum(hll_cardinality(clients))::INTEGER FROM {table}"
s = f"SELECT sum(requests)::BIGINT, sum(hll_cardinality(clients))::INTEGER FROM {table}"
else:
s = f"SELECT country, sum(requests)::INTEGER, sum(hll_cardinality(clients))::INTEGER FROM {table}"
s = f"SELECT country, sum(requests)::BIGINT, sum(hll_cardinality(clients))::INTEGER FROM {table}"
elif params["request"] == "send":
s = f"SELECT sum(bytes)::INTEGER FROM {table}"
s = f"SELECT sum(bytes)::BIGINT FROM {table}"
elif params["request"] == "timeseries":
s = f"SELECT date, country, sum(bytes)::INTEGER, sum(hll_cardinality(clients))::INTEGER FROM {table}"
s = f"SELECT date, country, sum(bytes)::BIGINT, sum(hll_cardinality(clients))::INTEGER FROM {table}"
s = sql_common_string(params, s)
if "all" not in params["country"]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment