projects
/
lemmy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93225e5
)
Only update site_aggregates for local site (#3516)
author
Sander Saarend
<sander@saarend.com>
Mon, 10 Jul 2023 15:20:39 +0000
(18:20 +0300)
committer
GitHub
<noreply@github.com>
Mon, 10 Jul 2023 15:20:39 +0000
(11:20 -0400)
src/scheduled_tasks.rs
patch
|
blob
|
history
diff --git
a/src/scheduled_tasks.rs
b/src/scheduled_tasks.rs
index 4d3c936e88b4cd49eac90c4473645be350c4ac9d..a052585ecb4a9c4e88e6c648d49476cd5bc0525e 100644
(file)
--- a/
src/scheduled_tasks.rs
+++ b/
src/scheduled_tasks.rs
@@
-273,7
+273,7
@@
fn active_counts(conn: &mut PgConnection) {
for i in &intervals {
let update_site_stmt = format!(
- "update site_aggregates set users_active_{} = (select * from site_aggregates_activity('{}'))",
+ "update site_aggregates set users_active_{} = (select * from site_aggregates_activity('{}'))
where site_id = 1
",
i.1, i.0
);
match sql_query(update_site_stmt).execute(conn) {