Skip to content

Commit

Permalink
Agora obtêm-se as informações de todos os jogadores.
Browse files Browse the repository at this point in the history
  • Loading branch information
andlima committed Aug 5, 2010
1 parent d72495d commit 619f3a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mercado.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

LOGIN_URL = 'https://loginfree.globo.com/login/438'
URL_MERCADO = ('http://cartolafc.globo.com/mercado/filtrar.json?'
'page=%d&order_by=preco&status_id=7')
'page=%d&order_by=preco')
MERCADO_DUMP = 'mercado-%s.dump'
MERCADO_TXT= 'mercado.txt'
ARQUIVO_CONFIG = 'mercado.cfg'
Expand Down
2 changes: 2 additions & 0 deletions olheiro.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def identify(j):
if __name__ == '__main__':
cenario = mercado.busca_mercado()

print ('Filtrando apenas jogadores com status provavel e '
'pelo menos tres jogos.')
cenario.jogadores = [j for j in cenario.jogadores
if (j.status_id == 7 and
j.jogos >= 3)]
Expand Down

0 comments on commit 619f3a3

Please sign in to comment.