From 9908e392c4f9eba90e4dd746d189e8b3bc045af3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 23 Jan 2019 15:09:27 +0100 Subject: [PATCH] forgetting things --- statsupdate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()