Skip to content

Commit

Permalink
Coluna "TimeID" adicionada ao Scraper de Gols
Browse files Browse the repository at this point in the history
  • Loading branch information
ballomud committed Jul 15, 2015
1 parent 7ca9278 commit 54485b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Scrapers/LancesScrapers/Gols.py
Expand Up @@ -48,6 +48,13 @@ def isGol(x):
gDict['Apelido'] = g['gol']['autor']
gDict['AtletaID'] = g['gol']['autor_id']
gDict['Contra'] = g['gol']['contra']

# Minera ID do clube
if(g['jogo']['equipe_mandante']['nome'] == g['nome_time']):
gDict['TimeID'] = g['jogo']['equipe_mandante']['id']
else:
gDict['TimeID'] = g['jogo']['equipe_visitante']['id']

GolsDict.append(gDict)

print '[LOG] Processamento de Lances.Gols Terminado'
Expand Down

0 comments on commit 54485b0

Please sign in to comment.