fix views analytics (#885)

* fix views analytics

* update ip stripping

* update clickhouse tables

* fix broken queries

* Fix panics

* fix download undercounting

* fix packerator failing sometimes

* run prep
This commit is contained in:
Geometrically
2024-03-02 14:04:46 -07:00
committed by GitHub
parent 04d834187b
commit e2ffeab8fa
12 changed files with 207 additions and 140 deletions

View File

@@ -511,6 +511,7 @@ impl AutomatedModerationQueue {
"
INSERT INTO moderation_external_files (sha1, external_license_id)
SELECT * FROM UNNEST ($1::bytea[], $2::bigint[])
ON CONFLICT (sha1) DO NOTHING
",
&insert_hashes[..],
&insert_ids[..]