def main(): LogHandler.merge_session() LogHandler.backup() handler = LogHandler() try: while True: handler.update_session() LogHandler.sleep() except: handler.update_session() LogHandler.merge_session() handler.print_progress_today(force=True)
def func_update(): while True: handler.update_session() handler.print_progress_today(force=False) LogHandler.sleep()