]> git.parisson.com Git - telemeta.git/commitdiff
bugfix
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 7 Feb 2014 17:20:01 +0000 (18:20 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 7 Feb 2014 17:20:01 +0000 (18:20 +0100)
telemeta/management/commands/telemeta-fix-item-markers.py

index 9bb67d039a68b87c1c8466690d3cb01014745047..332dd4ed15b46f65bd2b9ec49c2c5dadf760e634 100644 (file)
@@ -12,7 +12,7 @@ class Command(BaseCommand):
     args = "code"
 
     def handle(self, *args, **options):
-        code = args[-2]
+        code = args[-1]
 
         items = MediaItem.objects.filter(code__contains=code)
         if items: