That works. Silly me.

Thank you Florian.

On Fri, Jan 19, 2018 at 7:32 PM, Florian Schweikert <kel...@ist-total.org>
wrote:

> Hi,
>
> On 19/01/18 11:50, tango ward wrote:
> >             # Check who the winner of the match
> >             if data['radiant_win'] == 'False':
>
> You are comparing a boolean with the *string* 'False', remove the ' and
> try again.
>
> >                 j_data['Winner'] = data['dire_name']
> >             else:
> >                 j_data['Winner'] = data['radiant_name']
> >
> >             # Put the data in our game_data list
> >             game_data.append(j_data)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/28f8e57a-2857-b5dc-c987-d4f378bb3247%40ist-total.org.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA6wQL%2BqyJ6CtHDOqcHn7N%2B7F0w1auFEEDwoXnTBJKcNHwNPMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to