Fixed total variables.
This commit is contained in:
parent
eed7aee596
commit
ba1f6f05da
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ class Command(BaseCommand):
|
||||||
for album in playlist['albums']:
|
for album in playlist['albums']:
|
||||||
Album.objects.create(title=album['title'],
|
Album.objects.create(title=album['title'],
|
||||||
disabled=album['disabled'])
|
disabled=album['disabled'])
|
||||||
total_albums += 1
|
totals['albums'] += 1
|
||||||
|
|
||||||
self.stdout.write('Imported {} albums'.format(str(totals['albums'])))
|
self.stdout.write('Imported {} albums'.format(str(totals['albums'])))
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class Command(BaseCommand):
|
||||||
first_name=artist['first_name'] or '',
|
first_name=artist['first_name'] or '',
|
||||||
last_name=artist['last_name'] or '',
|
last_name=artist['last_name'] or '',
|
||||||
disabled=artist['disabled'])
|
disabled=artist['disabled'])
|
||||||
total_artists += 1
|
totals['artists'] += 1
|
||||||
|
|
||||||
self.stdout.write('Imported {} artists'.format(str(totals['artists'])))
|
self.stdout.write('Imported {} artists'.format(str(totals['artists'])))
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ class Command(BaseCommand):
|
||||||
for game in playlist['games']:
|
for game in playlist['games']:
|
||||||
Game.objects.create(title=game['title'],
|
Game.objects.create(title=game['title'],
|
||||||
disabled=game['disabled'])
|
disabled=game['disabled'])
|
||||||
total_games += 1
|
totals['games'] += 1
|
||||||
|
|
||||||
self.stdout.write('Imported {} games'.format(str(totals['games'])))
|
self.stdout.write('Imported {} games'.format(str(totals['games'])))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue