Skip to content

Commit

Permalink
clean history data
Browse files Browse the repository at this point in the history
  • Loading branch information
muyids committed Oct 13, 2023
1 parent f7972eb commit 1030c9b
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run_data_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ jobs:
- name: Run sync Garmin CN script
if: env.RUN_TYPE == 'garmin_cn'
run: |
# make garimin secret string `python run_page/get_garmin_secret.py ${email} ${password} --is-cn
python run_page/garmin_sync.py ${{ secrets.GARMIN_SECRET_STRING_CN }} --is-cn
# make garimin secret string `python run_page/get_garmin_secret.py ${email} ${password} --only-run --is-cn
python run_page/garmin_sync.py ${{ secrets.GARMIN_SECRET_STRING_CN }} --only-run --is-cn
# If you only want to sync `type running` add args --only-run, default script is to sync all data (rides and runs).
# python run_page/garmin_sync.py ${{ secrets.GARMIN_SECRET_STRING_CN }} --only-run --is-cn

Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
python run_page/gen_svg.py --from-db --title "${{ env.TITLE }}" --type github --athlete "${{ env.ATHLETE }}" --special-distance 10 --special-distance2 20 --special-color yellow --special-color2 red --output assets/github.svg --use-localtime --min-distance 0.5
python run_page/gen_svg.py --from-db --title "${{ env.TITLE_GRID }}" --type grid --athlete "${{ env.ATHLETE }}" --output assets/grid.svg --special-color yellow --special-color2 red --special-distance 20 --special-distance2 40 --use-localtime --min-distance "${{ env.MIN_GRID_DISTANCE }}"
python run_page/gen_svg.py --from-db --type circular --use-localtime
python run_page/gen_svg.py --from-db --year $(date +"%Y") --language zh_CN --title "$(date +"%Y") Running" --type github --athlete "${{ env.ATHLETE }}" --special-distance 10 --special-distance2 20 --special-color yellow --special-color2 red --output assets/github_$(date +"%Y").svg --use-localtime --min-distance 0.5
python run_page/gen_svg.py --from-db --year $(date +"%Y") --title "$(date +"%Y") Running" --type github --athlete "${{ env.ATHLETE }}" --special-distance 10 --special-distance2 20 --special-color yellow --special-color2 red --output assets/github_$(date +"%Y").svg --use-localtime --min-distance 0.5
- name: Push new runs
if: env.SAVE_DATA_IN_GITHUB_CACHE != 'true'
Expand Down
2 changes: 0 additions & 2 deletions assets/github.svg

This file was deleted.

2 changes: 0 additions & 2 deletions assets/github_2022.svg

This file was deleted.

2 changes: 0 additions & 2 deletions assets/github_2023.svg

This file was deleted.

2 changes: 0 additions & 2 deletions assets/grid.svg

This file was deleted.

2 changes: 0 additions & 2 deletions assets/year_2018.svg

This file was deleted.

2 changes: 0 additions & 2 deletions assets/year_2019.svg

This file was deleted.

Loading

0 comments on commit 1030c9b

Please sign in to comment.