diff options
author | 2019-11-25 17:20:49 -0500 | |
---|---|---|
committer | 2019-11-25 17:20:49 -0500 | |
commit | 2ade62a185eafed7667aff6bb1936df16302ae3d (patch) | |
tree | aee69fd6cc588d39bcf4f0a2ed6123b7eabcf67a | |
parent | Update leaderboard ID (diff) |
Add env var support for Advent of Code year specification
To assist with debugging
-rw-r--r-- | bot/constants.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py index 5087119c..732431ce 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -17,7 +17,7 @@ class AdventOfCode: leaderboard_id = 631135 leaderboard_join_code = str(environ.get("AOC_JOIN_CODE", None)) leaderboard_max_displayed_members = 10 - year = datetime.utcnow().year + year = int(environ.get("AOC_YEAR", datetime.utcnow().year)) role_id = int(environ.get("AOC_ROLE_ID", 518565788744024082)) |