mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:06:08 -04:00
Consistently use db_to_json
to convert from database values to JSON objects. (#7849)
This commit is contained in:
parent
b0f031f92a
commit
f460da6031
22 changed files with 80 additions and 82 deletions
|
@ -249,7 +249,10 @@ class BackgroundUpdater(object):
|
|||
retcol="progress_json",
|
||||
)
|
||||
|
||||
progress = json.loads(progress_json)
|
||||
# Avoid a circular import.
|
||||
from synapse.storage._base import db_to_json
|
||||
|
||||
progress = db_to_json(progress_json)
|
||||
|
||||
time_start = self._clock.time_msec()
|
||||
items_updated = await update_handler(progress, batch_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue