mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
ruff: Fix PLW0108 Lambda may be unnecessary.
This is a preview rule, not yet enabled by default. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
553f268b04
commit
d748ec8d52
@@ -90,12 +90,12 @@ cache_fillers: Dict[
|
||||
] = {
|
||||
"user": (get_users, user_cache_items, 3600 * 24 * 7, 10000),
|
||||
"client": (
|
||||
lambda: Client.objects.all(),
|
||||
Client.objects.all,
|
||||
client_cache_items,
|
||||
3600 * 24 * 7,
|
||||
10000,
|
||||
),
|
||||
"session": (lambda: Session.objects.all(), session_cache_items, 3600 * 24 * 7, 10000),
|
||||
"session": (Session.objects.all, session_cache_items, 3600 * 24 * 7, 10000),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user