Skip to content

Commit

Permalink
sync: better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Dec 25, 2023
1 parent 1c73929 commit fa9f16b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,14 @@ def asset_to_tiles(asset):
log.info("There are currently {} pages visible".format(len(pages)))

for setup_id in app.config["SETUP_IDS"]:
log.info("[Setup {}] Getting old config".format(setup_id))
config = ib.get(f"setup/{setup_id}")["config"][""]

old_config = config.copy()

for schedule in config["schedules"]:
if schedule["name"] == "User Content":
log.info('Found schedule "User Content" in setup {}'.format(setup_id))
log.info('[Setup {}] Found schedule "User Content"'.format(setup_id))

schedule["pages"] = pages

Expand Down

0 comments on commit fa9f16b

Please sign in to comment.