diff options
author | 2020-10-27 02:43:59 +0000 | |
---|---|---|
committer | 2020-10-27 02:43:59 +0000 | |
commit | 09d775c57b69c661a8de692c1b4a417331d5ac57 (patch) | |
tree | 024cc52d9b2fe42d277cc56abbb1cfbcdb4477d3 /pydis_site/apps | |
parent | Remove unnecessary f-string marker (diff) |
Remove unnecessary timestamp conversion
Diffstat (limited to 'pydis_site/apps')
-rw-r--r-- | pydis_site/apps/api/models/bot/metricity.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pydis_site/apps/api/models/bot/metricity.py b/pydis_site/apps/api/models/bot/metricity.py index 4313d2e2..60b2e73d 100644 --- a/pydis_site/apps/api/models/bot/metricity.py +++ b/pydis_site/apps/api/models/bot/metricity.py @@ -54,11 +54,7 @@ class Metricity: COUNT(*) FROM ( SELECT - to_timestamp( - floor((extract('epoch' from created_at) / %d )) - * %d - ) - AT TIME ZONE 'UTC' AS interval + (floor((extract('epoch' from created_at) / %d )) * %d) AS interval FROM messages WHERE author_id='%s' |