Spaces:
Runtime error
Runtime error
Update automation.py
Browse files- automation.py +1 -2
automation.py
CHANGED
|
@@ -140,8 +140,7 @@ def schedule_info() -> str:
|
|
| 140 |
now = dt.datetime.now(NY)
|
| 141 |
last = STATE["last_run"].strftime("%Y-%m-%d %H:%M ET") if STATE["last_run"] else "never"
|
| 142 |
return (f"**Schedule:** Mon–Fri **{RUN_HOUR:02d}:{RUN_MINUTE:02d} America/New_York** "
|
| 143 |
-
f"(market closes 16:00 ET;
|
| 144 |
-
f"that's 07:10 next morning Beijing time).\n\n"
|
| 145 |
f"**Now (ET):** {now.strftime('%Y-%m-%d %H:%M')} · **Last run:** {last}\n\n"
|
| 146 |
f"⚠️ On free Space hardware the app sleeps when idle and the timer can't fire; "
|
| 147 |
f"use **Run now**, or upgrade to always-on hardware for unattended updates.")
|
|
|
|
| 140 |
now = dt.datetime.now(NY)
|
| 141 |
last = STATE["last_run"].strftime("%Y-%m-%d %H:%M ET") if STATE["last_run"] else "never"
|
| 142 |
return (f"**Schedule:** Mon–Fri **{RUN_HOUR:02d}:{RUN_MINUTE:02d} America/New_York** "
|
| 143 |
+
f"(market closes 16:00 ET; ).\n\n"
|
|
|
|
| 144 |
f"**Now (ET):** {now.strftime('%Y-%m-%d %H:%M')} · **Last run:** {last}\n\n"
|
| 145 |
f"⚠️ On free Space hardware the app sleeps when idle and the timer can't fire; "
|
| 146 |
f"use **Run now**, or upgrade to always-on hardware for unattended updates.")
|