cleanup unused imports and unused variables
This commit is contained in:
parent
06f6a79b7b
commit
b1d83b0f93
42 changed files with 30 additions and 155 deletions
|
|
@ -2,12 +2,9 @@
|
|||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
|
||||
import os
|
||||
from os.path import join, dirname, basename, splitext, exists
|
||||
import time
|
||||
from glob import glob
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django.conf import settings
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
import monkey_patch.models
|
||||
from ... import models
|
||||
|
|
@ -23,7 +20,7 @@ class Command(BaseCommand):
|
|||
def handle(self, **options):
|
||||
offset = 0
|
||||
chunk = 100
|
||||
count = pos = models.Item.objects.count()
|
||||
count = models.Item.objects.count()
|
||||
while offset <= count:
|
||||
for i in models.Item.objects.all().order_by('id')[offset:offset+chunk]:
|
||||
if not os.path.exists(os.path.join(i.timeline_prefix, 'cuts.json')) or \
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
|
||||
import os
|
||||
from os.path import join, dirname, basename, splitext, exists
|
||||
import time
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django.conf import settings
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
import monkey_patch.models
|
||||
from ... import models
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ from django.conf import settings
|
|||
|
||||
import monkey_patch.models
|
||||
from ... import models
|
||||
import time
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ from optparse import make_option
|
|||
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.db import connection, transaction
|
||||
from django.conf import settings
|
||||
from django.db.models import fields
|
||||
|
||||
import monkey_patch.models
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue