mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
python: Tweak some magic trailing commas to avoid Black bugs.
https://github.com/psf/black/issues/1658 https://github.com/psf/black/issues/1671 Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
f91d287447
commit
3b301f522b
@@ -29,7 +29,7 @@ def copy_id_to_bigid(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> No
|
||||
return
|
||||
|
||||
# TODO: is the below lookup fast enough, considering there's no index on bigint_id?
|
||||
first_uncopied_id = UserMessage.objects.filter(bigint_id__isnull=True,
|
||||
first_uncopied_id = UserMessage.objects.filter(bigint_id__isnull=True
|
||||
).aggregate(Min('id'))['id__min']
|
||||
# Note: the below id can fall in a segment
|
||||
# where bigint_id = id already, but it's not a big problem
|
||||
|
||||
Reference in New Issue
Block a user