Skip to content

Commit

Permalink
use double digits (#110)
Browse files Browse the repository at this point in the history
* use double digits

* try long sleep
  • Loading branch information
MateoLostanlen authored Sep 28, 2023
1 parent 8993fdb commit c9523dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
API_PWD: ${{ secrets.API_PWD }}
run: |
screen -dm python app/main.py
sleep 40
sleep 200
curl http://localhost:8050/
docker:
runs-on: ubuntu-latest
Expand All @@ -64,4 +64,4 @@ jobs:
API_PWD: ${{ secrets.API_PWD }}
run: docker-compose -f docker-compose-dev.yml up -d --build
- name: Check docker sanity
run: sleep 40 && docker-compose logs && curl http://localhost:8050/
run: sleep 200 && docker-compose logs && curl http://localhost:8050/
2 changes: 1 addition & 1 deletion app/utils/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def build_individual_alert_components(live_alerts, alert_frame_urls, site_device
html.Span("Lat : {} / Lon : {}".format(alert_lat, alert_lon), style={"display": "block"}),
html.Span(f"Tour : {site_name}", style={"display": "block"}),
html.Span(
"{} / {}:{}".format(alert_date, alert_time.hour, alert_time.minute),
"{} / {}:{}".format(alert_date, f"{alert_time.hour:02}", f"{alert_time.minute:02}"),
style={"display": "block"},
),
],
Expand Down

0 comments on commit c9523dc

Please sign in to comment.