mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 09:03:57 +00:00
ruff: Fix PLR6104 Use += to perform an augmented assignment directly.
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
b96feb34f6
commit
1e9b6445a9
@@ -1025,7 +1025,7 @@ def do_import_realm(import_dir: Path, subdomain: str, processes: int = 1) -> Rea
|
||||
data = orjson.loads(f.read())
|
||||
|
||||
# Merge in zerver_userprofile_mirrordummy
|
||||
data["zerver_userprofile"] = data["zerver_userprofile"] + data["zerver_userprofile_mirrordummy"]
|
||||
data["zerver_userprofile"] += data["zerver_userprofile_mirrordummy"]
|
||||
del data["zerver_userprofile_mirrordummy"]
|
||||
data["zerver_userprofile"].sort(key=lambda r: r["id"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user