Пример #1
0
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)
Пример #2
0
def func_update():
    while True:
        handler.update_session()
        handler.print_progress_today(force=False)
        LogHandler.sleep()