Skip to content

Commit

Permalink
fix(db): replace AZ Coyotes with Utah Hockey Club in NHLGT bot settings
Browse files Browse the repository at this point in the history
fix(nhlgt): Add Utah Hockey Club to subreddit lists
ver(nhlgt): 2.0.14
ver(platform): 2024.10.3
  • Loading branch information
toddrob99 committed Oct 11, 2024
1 parent 9992a55 commit acadfba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bots/nhl_game_threads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

import praw

__version__ = "2.0.13"
__version__ = "2.0.14"

DATA_LOCK = threading.Lock()

Expand Down Expand Up @@ -2710,6 +2710,7 @@ def convert_timezone(self, dt, convert_to="America/New_York"):
"VGK": "/r/goldenknights",
"WPG": "/r/winnipegjets",
"WSH": "/r/caps",
"UTA": "/r/utah_hockey",
}

teamSubsById = {
Expand Down Expand Up @@ -2745,6 +2746,7 @@ def convert_timezone(self, dt, convert_to="America/New_York"):
53: "/r/coyotes",
54: "/r/goldenknights",
55: "/r/seattlekraken",
59: "/r/utah_hockey",
}

def bot_state(self):
Expand Down
8 changes: 8 additions & 0 deletions redball/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,4 +445,12 @@ def upgrade_database(toVer=None):
time.time()
),
],
14: [
# Update Arizona Coyotes id=53 to Utah Hockey Club id=59 in NHL Game Thread bot settings
"""UPDATE rb_botConfig set val=REPLACE(val, 'Arizona Coyotes|53', 'Utah Hockey Club|59'), options=REPLACE(options, 'Arizona Coyotes|53', 'Utah Hockey Club|59') WHERE category='NHL' and key='TEAM';""",
# Update DB version to 14
"UPDATE rb_meta SET val='14', lastUpdate='{}' WHERE key='dbVersion';".format(
time.time()
),
],
}
2 changes: 1 addition & 1 deletion redball/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python

VERSION = "2024.10.2"
VERSION = "2024.10.3"

0 comments on commit acadfba

Please sign in to comment.