for row in tickets if row estimation_bet print datetime datetime strpt

1
2
3
4
5
6
7
8
for row in tickets:
if row.estimation_bet():
print datetime.datetime.strptime(row.estimation_bet()['expires'], fmt), NOW()
if datetime.datetime.strptime(row.estimation_bet()['expires'], fmt) < NOW():
row.bet_life = False
else:
row.bet_life = True
row.save()