Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,11 @@ start_initial_run()
|
|
| 71 |
def home():
|
| 72 |
"""Main UI displaying logs and next run time."""
|
| 73 |
job = scheduler.get_job('main_job')
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
return render_template_string('''
|
| 77 |
<!DOCTYPE html>
|
|
|
|
| 71 |
def home():
|
| 72 |
"""Main UI displaying logs and next run time."""
|
| 73 |
job = scheduler.get_job('main_job')
|
| 74 |
+
if job:
|
| 75 |
+
ist_time = job.next_run_time.astimezone(pytz.timezone("Asia/Kolkata"))
|
| 76 |
+
next_run = ist_time.strftime('%Y-%m-%d %H:%M:%S IST')
|
| 77 |
+
else:
|
| 78 |
+
next_run = 'N/A'
|
| 79 |
|
| 80 |
return render_template_string('''
|
| 81 |
<!DOCTYPE html>
|