Spaces:
Runtime error
Runtime error
Update app2.py
Browse files
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 |
|