diff --git a/statsupdate.py b/statsupdate.py index 2ff1fc48..940dd4f8 100644 --- a/statsupdate.py +++ b/statsupdate.py @@ -133,6 +133,9 @@ def osu_pp_change(item, change: typing.Tuple[DirtyDelta, DirtyDelta, DirtyDelta, def process(): while True: session = db.Session() + logger.info("Now updating osu! data.") + update_block(session, session.query(db.Osu).all(), delay=5, change_callback=osu_pp_change) + session.commit() logger.info("Now updating Steam data.") update_block(session, session.query(db.Steam).all()) session.commit() @@ -142,9 +145,6 @@ def process(): logger.info("Now updating League of Legends data.") update_block(session, session.query(db.LeagueOfLegends).all(), delay=5, change_callback=new_lol_rank) session.commit() - logger.info("Now updating osu! data.") - update_block(session, session.query(db.Osu).all(), delay=5) - session.commit() logger.info("Now updating Overwatch data.") update_block(session, session.query(db.Overwatch).all(), delay=5) session.commit()