diff options
| author | 2024-03-16 13:30:45 +0800 | |
|---|---|---|
| committer | 2024-03-16 13:30:45 +0800 | |
| commit | dac4652de8d175b15f1386e802a857bf907d4d7b (patch) | |
| tree | e3b6f55ba5e89ef6bd5c16c72ed69638075f69bd /pydis_site/apps/api/models | |
| parent | Add READMEs to apps/events and templates/events (diff) | |
| parent | Merge pull request #1257 from python-discord/dependabot/pip/coverage-7.4.4 (diff) | |
Merge branch 'main' into feat/events-redesign
Diffstat (limited to 'pydis_site/apps/api/models')
| -rw-r--r-- | pydis_site/apps/api/models/bot/metricity.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/apps/api/models/bot/metricity.py b/pydis_site/apps/api/models/bot/metricity.py index f1277b21..7d5d5f0b 100644 --- a/pydis_site/apps/api/models/bot/metricity.py +++ b/pydis_site/apps/api/models/bot/metricity.py @@ -49,7 +49,7 @@ class Metricity: WHERE author_id = '%s' AND NOT is_deleted - AND channel_id != ANY(%s) + AND channel_id != ALL(%s) """, [user_id, EXCLUDE_CHANNELS] ) @@ -77,7 +77,7 @@ class Metricity: WHERE author_id='%s' AND NOT is_deleted - AND channel_id != ANY(%s) + AND channel_id != ALL(%s) GROUP BY interval ) block_query; """, @@ -147,7 +147,7 @@ class Metricity: WHERE author_id = ANY(%s) AND NOT is_deleted - AND channel_id != ANY(%s) + AND channel_id != ALL(%s) AND created_at > now() - interval '%s days' GROUP BY author_id """, |