acecalisto3 commited on
Commit
b8139e1
·
verified ·
1 Parent(s): cb7d91c

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +1 -1
app2.py CHANGED
@@ -224,7 +224,7 @@ async def periodic_update_with_error_handling(db_session):
224
  while True:
225
  try:
226
  await asyncio.sleep(300) # Wait for 5 minutes
227
- await update_feed_content(db_session)
228
  except Exception as e:
229
  logger.error(f"Error in periodic update: {e}")
230
 
 
224
  while True:
225
  try:
226
  await asyncio.sleep(300) # Wait for 5 minutes
227
+ await update_feed_content(db_session) # Pass db_session here
228
  except Exception as e:
229
  logger.error(f"Error in periodic update: {e}")
230