dev@locazia: fix misprint

This commit is contained in:
user 2024-03-03 14:50:32 +03:00
parent 8e37098057
commit 0774d615ec
2 changed files with 2 additions and 6 deletions

View File

@ -55,7 +55,7 @@ async def main():
while True: while True:
sw_seqno_value = await get_sw_seqno() sw_seqno_value = await get_sw_seqno()
make_log("TON", f"Service running ({sw_seqno_value}", level="debug") make_log("TON", f"Service running ({sw_seqno_value})", level="debug")
# with db_session() as session: # with db_session() as session:
# for stored_content in session.query(StoredContent).filter(StoredContent.uploaded == False).all(): # for stored_content in session.query(StoredContent).filter(StoredContent.uploaded == False).all():
# pass # pass

View File

@ -17,15 +17,11 @@ async def main():
try: try:
make_log("Uploader", "Service running", level="debug") make_log("Uploader", "Service running", level="debug")
await uploader_loop() await uploader_loop()
# with db_session() as session:
# for stored_content in session.query(StoredContent).filter(StoredContent.uploaded == False).all():
# pass
await asyncio.sleep(5) await asyncio.sleep(5)
await send_status("uploader", f"working (seqno={seqno})") await send_status("uploader", f"working (seqno={seqno})")
seqno += 1 seqno += 1
except BaseException as e: except BaseException as e:
make_log("Uploader", f"Error: {e}" + '\n' + str(traceback.format_exc()), level="error") make_log("Uploader", f"Error: {e}", level="error")
await asyncio.sleep(3) await asyncio.sleep(3)
if __name__ == '__main__': if __name__ == '__main__':