Download utils.py from Whoopsies/strava: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/Whoopsies/strava/resolve/main/utils.py
- Command line
-
hf download hf://spaces/Whoopsies/strava/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/Whoopsies/strava/resolve/main/utils.py
299 Bytes
| from datetime import datetime, timedelta | |
| import streamlit as st | |
| def find_default_publish_start_end_date(): | |
| today = datetime.now() | |
| start = today - timedelta(days=today.weekday()) | |
| end = start + timedelta(days=6) | |
| if end > today: | |
| end = today | |
| return start, end |