Spaces:
Runtime error
Runtime error
change cron job to once a day
Browse files- .github/workflows/actions.yml +1 -1
- app.py +1 -1
.github/workflows/actions.yml
CHANGED
|
@@ -2,7 +2,7 @@ name: Update Job Database
|
|
| 2 |
|
| 3 |
on:
|
| 4 |
schedule:
|
| 5 |
-
- cron: "0
|
| 6 |
workflow_dispatch: # Allows manual triggering
|
| 7 |
|
| 8 |
permissions:
|
|
|
|
| 2 |
|
| 3 |
on:
|
| 4 |
schedule:
|
| 5 |
+
- cron: "0 0 * * *" # Runs once a day at midnight
|
| 6 |
workflow_dispatch: # Allows manual triggering
|
| 7 |
|
| 8 |
permissions:
|
app.py
CHANGED
|
@@ -155,7 +155,7 @@ def main():
|
|
| 155 |
last_update = read_timestamp()
|
| 156 |
last_update_dt = datetime.strptime(last_update, DATE_FORMAT)
|
| 157 |
st.markdown("### Database Status")
|
| 158 |
-
st.markdown("🔄 Updates
|
| 159 |
st.markdown(f"**Last update:** {last_update_dt.strftime('%B %d, %Y at %I:%M %p')} (Stockholm Time)")
|
| 160 |
except Exception as e:
|
| 161 |
st.error(f"Error reading timestamp: {str(e)}")
|
|
|
|
| 155 |
last_update = read_timestamp()
|
| 156 |
last_update_dt = datetime.strptime(last_update, DATE_FORMAT)
|
| 157 |
st.markdown("### Database Status")
|
| 158 |
+
st.markdown("🔄 Updates once a day at midnight.")
|
| 159 |
st.markdown(f"**Last update:** {last_update_dt.strftime('%B %d, %Y at %I:%M %p')} (Stockholm Time)")
|
| 160 |
except Exception as e:
|
| 161 |
st.error(f"Error reading timestamp: {str(e)}")
|