mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
update_subscriber_counts: Fix annotate usage.
Commit 7f3bb4523c
(#36160) broke this.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -88,7 +88,7 @@ accurate; this command is run as a daily cron job to ensure the number is accura
|
|||||||
changed_subs.distinct("modified_stream_id")
|
changed_subs.distinct("modified_stream_id")
|
||||||
.order_by("modified_stream_id")
|
.order_by("modified_stream_id")
|
||||||
.annotate(stream_id=F("modified_stream_id"))
|
.annotate(stream_id=F("modified_stream_id"))
|
||||||
.union(streams_from_users.annotate(stream_id="id"))
|
.union(streams_from_users.annotate(stream_id=F("id")))
|
||||||
.values_list("stream_id", flat=True)
|
.values_list("stream_id", flat=True)
|
||||||
)
|
)
|
||||||
elif realm := self.get_realm(options):
|
elif realm := self.get_realm(options):
|
||||||
|
Reference in New Issue
Block a user