1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

forgetting things

This commit is contained in:
Steffo 2019-01-23 15:09:27 +01:00
parent 91f397e025
commit 9908e392c4

View file

@ -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()