-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Platform FIX: Web interface inaccessible when AUTH_TYPE=None FIX: Basic and None authentication options were not providing access to bots (no user-specific privileges will be honored for either of these options now). FIX: Error when creating bot with AUTH_TYPE=None (see #13 for other known issues) FIX: Bot config import fails for big config file FIX: Refresh token not saved when creating a new reddit authorization ENH: Game Threads bot label changed to MLB Game Threads NEW: NFL Game Thread Bot (v1.0-alpha) VER: 1.0 DBVER: 5 ### MLB Game Threads FIX: Errors in gumbo data patch process FIX: Comment thread crashing when isScoringPlay is missing from data FIX: Off thread sometimes unstickied prematurely FIX: Comment body sometimes lists wrong team as leading FIX: Scoring play list missing from game/post threads FIX: Unwanted comments for other team's plays FIX: Line score showed 0 for new inning earlier than MLB does FIX: Hide weather conditions if only dummy data is published FIX: Gameday thread update loop never ends if game gets postponed before game thread is posted and UPDATE_UNTIL="Game thread is posted" FIX: GameDay and Game threads get posted when bot is restarted after game is postponed FIX: Error getting bot state when gameday/game threads are skipped FIX: DH Game 2 game thread does not post FIX: Straight DH Game 2 shows wrong game date/time FIX: Game thread update process crashes for DH G2 before G1 is final FIX: DH Game 2 fails to match DH Game 1 when home/away teams flip FIX: DH Game 2 using stale status for Game 1 FIX: Query error in check if all postgame threads are submitted (in order to skip gameday thread) FIX: Bot thought season was suspended if restarted after all games ended FIX: Don't default pitch count to 0-0 in comment body ENH: Added custom date format and home/road win/loss and exception prefix settings for for thread titles ENH: Wait 5 minutes after game 1 is final before posting game thread for straight DH game 2, to hopefully have updated records for thread title ENH: Include game status in gameday thread ENH: List runner and matchup info in game threads ENH: Add locks to prevent multiple threads from updating data cache at the same time ENH: Logging improvements REM: Removed table holding game ids for game thread bots -- was not being used and was throwing an error for rescheduled games INT: Better naming of scheduled tasks VER: 1.0 ### NFL Game Threads VER: 1.0-alpha
- Loading branch information
Showing
36 changed files
with
5,459 additions
and
464 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.github | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,5 +1,6 @@ | ||
<% | ||
from datetime import datetime | ||
prefix = settings.get("Game Day Thread", {}).get("TITLE_PREFIX","Game Day Thread") | ||
dateFormat = settings.get("Game Day Thread", {}).get("DATE_FORMAT","%A, %B %d") | ||
%>\ | ||
${data[0]['myTeam']['teamName']} ${prefix + (" " if len(prefix) and not prefix.endswith(" ") else "")}- ${datetime.strptime(data[0]['today']['Ymd'],'%Y%m%d').strftime('%A, %B %d')} | ||
${data[0]['myTeam']['teamName']} ${prefix + (" " if len(prefix) and not prefix.endswith(" ") else "")}- ${datetime.strptime(data[0]['today']['Ymd'],'%Y%m%d').strftime(dateFormat)} |
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,3 +1,11 @@ | ||
<%page args="gamePk,dateFormat='%a, %b %d @ %I:%M %p %Z'" />\ | ||
## Matchup header: Team names with links to team subs and matchup image, followed by game date | ||
[${data[gamePk]['schedule']['teams']['away']['team']['teamName']}](${data[0]['teamSubs'].get(data[gamePk]['schedule']['teams']['away']['team']['id'], data[0]['teamSubs'][0])}) [@](http://mlb.mlb.com/images/2017_ipad/684/${data[gamePk]['schedule']['teams']['away']['team']['fileCode'] + data[gamePk]['schedule']['teams']['home']['team']['fileCode']}_684.jpg) [${data[gamePk]['schedule']['teams']['home']['team']['teamName']}](${data[0]['teamSubs'].get(data[gamePk]['schedule']['teams']['home']['team']['id'], data[0]['teamSubs'][0])}) - ${data[gamePk]['gameTime']['myTeam'].strftime(dateFormat)} | ||
[${data[gamePk]['schedule']['teams']['away']['team']['teamName']}](${data[0]['teamSubs'].get(data[gamePk]['schedule']['teams']['away']['team']['id'], data[0]['teamSubs'][0])}) [@](http://mlb.mlb.com/images/2017_ipad/684/${data[gamePk]['schedule']['teams']['away']['team']['fileCode'] + data[gamePk]['schedule']['teams']['home']['team']['fileCode']}_684.jpg) [${data[gamePk]['schedule']['teams']['home']['team']['teamName']}](${data[0]['teamSubs'].get(data[gamePk]['schedule']['teams']['home']['team']['id'], data[0]['teamSubs'][0])}) \ | ||
%if data[gamePk]['schedule']['doubleHeader'] == 'Y' and data[gamePk]['schedule']['gameNumber'] == 2: | ||
- ${data[gamePk]['gameTime']['myTeam'].strftime('%a, %b %d')} - Doubleheader Game 2 | ||
%else: | ||
- ${data[gamePk]['gameTime']['myTeam'].strftime(dateFormat)} \ | ||
%endif | ||
%if data[gamePk]['schedule']['doubleHeader'] == 'S': | ||
- Doubleheader Game ${data[gamePk]['schedule']['gameNumber']} | ||
%endif |
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,10 @@ | ||
<% | ||
from datetime import datetime | ||
prefix = settings.get("Off Day Thread", {}).get("TITLE_PREFIX","Off Day Thread") | ||
prefix = settings.get("Off Day Thread", {}).get("TITLE_PREFIX","Off Day Thread") | ||
dateFormat = settings.get("Off Day Thread", {}).get("DATE_FORMAT","%A, %B %d") | ||
%>\ | ||
${data[0]['myTeam']['teamName']} \ | ||
${prefix if data[0]['myTeam']['seasonState'] in ['pre','regular','post:in'] else ''}\ | ||
${'Postseason Discussion Thread' if data[0]['myTeam']['seasonState'] == 'post:out' else ''}\ | ||
${'Offseason Discussion Thread' if data[0]['myTeam']['seasonState'].startswith('off') else ''}\ | ||
- ${datetime.strptime(data[0]['today']['Ymd'],'%Y%m%d').strftime('%A, %B %d')} | ||
- ${datetime.strptime(data[0]['today']['Ymd'],'%Y%m%d').strftime(dateFormat)} |
Oops, something went wrong.