That works. Silly me.
Thank you Florian.
On Fri, Jan 19, 2018 at 7:32 PM, Florian Schweikert
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 *str
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
Hi guys,
I want to get the correct data if if key == false from a json data. My if
else condition seems to be working however the data is inconsistent. Here's
my code:
class DotaMatches(TemplateView):
template_name = 'matches/dota_matches.html'
def get(self, request, *args, **kwargs):
3 matches
Mail list logo