-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from maii-chgk/poetry
switch to poetry for package management
- Loading branch information
Showing
7 changed files
with
578 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Calculate ratings for the past 5 weeks (takes about three minutes) | ||
10 1-23/4 * * * python /app/manage.py calc_all_releases --first_to_calc $(date -d "-5 weeks + $(( ( (3 - $(date +%u)) % 7) + 1 )) days" +"%Y-%m-%d") && curl https://rating.maii.li/recreate_views/b && curl https://rating.maii.li/reset_cache | ||
10 1-23/4 * * * /app/.venv/bin/python /app/manage.py calc_all_releases --first_to_calc $(date -d "-5 weeks + $(( ( (3 - $(date +%u)) % 7) + 1 )) days" +"%Y-%m-%d") && curl https://rating.maii.li/recreate_views/b && curl https://rating.maii.li/reset_cache | ||
|
||
# Recalculate all ratings, starting with the first release in September 2021 | ||
30 1 * * * python /app/manage.py calc_all_releases --first_to_calc 2021-09-09 && curl https://rating.maii.li/recreate_views/b && curl https://rating.maii.li/reset_cache && curl https://rating.maii.li/recalculate_truedl/b | ||
30 1 * * * /app/.venv/bin/python /app/manage.py calc_all_releases --first_to_calc 2021-09-09 && curl https://rating.maii.li/recreate_views/b && curl https://rating.maii.li/reset_cache && curl https://rating.maii.li/recalculate_truedl/b | ||
|
||
# Calculate ratings for the past 2 weeks as soon as results are open | ||
# See also https://github.com/maii-chgk/rating-importer/commit/f5a70e2dde797d132538d995f11b034670cdaf23 | ||
0 21 * * * python /app/manage.py calc_all_releases --first_to_calc $(date -d "$(( ( (3 - $(date +%u)) % 7) + 1 )) days" +"%Y-%m-%d") && curl https://rating.maii.li/recreate_views/b && curl https://rating.maii.li/reset_cache | ||
0 21 * * * /app/.venv/bin/python /app/manage.py calc_all_releases --first_to_calc $(date -d "$(( ( (3 - $(date +%u)) % 7) + 1 )) days" +"%Y-%m-%d") && curl https://rating.maii.li/recreate_views/b && curl https://rating.maii.li/reset_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.