Spaces:
Runtime error
Runtime error
Update app2.py
Browse files
app2.py
CHANGED
@@ -222,6 +222,12 @@ async def periodic_update_with_error_handling(db_session):
|
|
222 |
logger.error(f"Error in periodic update: {e}")
|
223 |
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
async def main():
|
226 |
global db_session
|
227 |
try:
|
|
|
222 |
logger.error(f"Error in periodic update: {e}")
|
223 |
|
224 |
|
225 |
+
async def on_start_click(target_urls_str: str, storage_loc: str, feed_enabled: bool):
|
226 |
+
urls = [url.strip() for url in target_urls_str.split(",")] # Split the input string by commas
|
227 |
+
await start_monitoring(urls, storage_loc if storage_loc else None, feed_enabled)
|
228 |
+
return "Monitoring started for valid URLs."
|
229 |
+
|
230 |
+
|
231 |
async def main():
|
232 |
global db_session
|
233 |
try:
|