python: Reformat with Black, except quotes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-11 23:19:30 -08:00
committed by Tim Abbott
parent 5028c081cb
commit 11741543da
817 changed files with 44952 additions and 24860 deletions

View File

@@ -96,11 +96,13 @@ def update_realmauditlog_values(apps: StateApps, schema_editor: DatabaseSchemaEd
# Sanity check that the original event has exactly the keys we expect.
assert set(extra_data.keys()) <= {OLD_VALUE, NEW_VALUE}
ra.extra_data = json.dumps({
OLD_VALUE: old_value,
NEW_VALUE: new_value,
"property": prop,
})
ra.extra_data = json.dumps(
{
OLD_VALUE: old_value,
NEW_VALUE: new_value,
"property": prop,
}
)
ra.save(update_fields=["extra_data"])
@@ -111,7 +113,7 @@ class Migration(migrations.Migration):
]
operations = [
migrations.RunPython(update_realmauditlog_values,
reverse_code=migrations.RunPython.noop,
elidable=True),
migrations.RunPython(
update_realmauditlog_values, reverse_code=migrations.RunPython.noop, elidable=True
),
]