ruff: Fix C414 Unnecessary list call within sorted().

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-10-29 18:35:32 -04:00
committed by Tim Abbott
parent 69e94b5991
commit 77c15547e6
6 changed files with 10 additions and 10 deletions

View File

@@ -306,7 +306,7 @@ def bulk_get_digest_context(
# Get all the recent topics for all the users. This does the heavy
# lifting of making an expensive query to the Message table. Then
# for each user, we filter to just the streams they care about.
recent_topics = get_recent_topics(sorted(list(all_stream_ids)), cutoff_date)
recent_topics = get_recent_topics(sorted(all_stream_ids), cutoff_date)
stream_map = get_slim_stream_map(all_stream_ids)