Skip to content

Commit

Permalink
Merge pull request #282 from fga-eps-mds/feature_#281
Browse files Browse the repository at this point in the history
[FIX] #281 Fix broken endpoint
  • Loading branch information
BRZangado committed Nov 27, 2018
2 parents d0f6eff + 77d2a73 commit 3100ab6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CrossData/API/fixtures/data.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion CrossData/API/table_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,13 @@ def get_data(self, games):
for game in games:

game_data = {}
info_steam = InfoSteam.objects.filter(game=game)

if len(info_steam) == 0:
continue
else:
info_steam = info_steam.latest('date')

info_steam = InfoSteam.objects.filter(game=game).latest('date')
info_youtube = InfoYoutube.objects.filter(game=game).latest('date')
info_twitch = InfoTwitch.objects.filter(game=game).latest('date')

Expand Down

0 comments on commit 3100ab6

Please sign in to comment.