Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Skip cache when updating MongoDB TBA base event or team info.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm committed Mar 24, 2018
1 parent db692a4 commit 27299f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sharkscout/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def events_update(self, year):

# TBA update an individual event
def event_update(self, event_key):
event = self.tba_api.event(event_key)
event = self.tba_api.event(event_key, True)
if event:
# Info that can be known before an event starts
event.update({k:v for k, v in {
Expand Down Expand Up @@ -601,7 +601,7 @@ def team(self, team_key, year=None):

# TBA update an individual team
def team_update(self, team_key):
team = self.tba_api.team(team_key)
team = self.tba_api.team(team_key, True)
if team:
team.update({k:v for k, v in {
'awards': self.tba_api.team_history_awards(team_key),
Expand Down

0 comments on commit 27299f7

Please sign in to comment.