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

Uncomment stuff

This commit is contained in:
Steffo 2018-09-18 00:11:28 +02:00
parent e84959b1e8
commit 7824d4f38d

View file

@ -63,24 +63,24 @@ def new_lol_rank(item: db.LeagueOfLegends):
def process(): def process():
while True: while True:
logger.info("Pausing for 30 minutes.")
time.sleep(1800)
session = db.Session() session = db.Session()
#logger.info("Now updating Steam data.") logger.info("Now updating Steam data.")
#update_block(session.query(db.Steam).all()) update_block(session.query(db.Steam).all())
#session.commit() session.commit()
#logger.info("Now updating Dota data.") logger.info("Now updating Dota data.")
#update_block(session.query(db.Dota).all(), delay=1, change_callback=new_dota_rank) update_block(session.query(db.Dota).all(), delay=1, change_callback=new_dota_rank)
#session.commit() session.commit()
#logger.info("Now updating League of Legends data.") logger.info("Now updating League of Legends data.")
#update_block(session.query(db.LeagueOfLegends).all(), delay=0.3, change_callback=new_lol_rank) update_block(session.query(db.LeagueOfLegends).all(), delay=0.3, change_callback=new_lol_rank)
#session.commit() session.commit()
#logger.info("Now updating osu! data.") logger.info("Now updating osu! data.")
#update_block(session.query(db.Osu).all(), delay=0.3) update_block(session.query(db.Osu).all(), delay=0.3)
#session.commit() session.commit()
logger.info("Now updating Overwatch data.") logger.info("Now updating Overwatch data.")
update_block(session.query(db.Overwatch).all(), delay=1) update_block(session.query(db.Overwatch).all(), delay=1)
session.commit() session.commit()
logger.info("Pausing for 30 minutes.")
time.sleep(1800)
if __name__ == "__main__": if __name__ == "__main__":