Prepare the backfill uploading flag script for the production run.

This commit is contained in:
Jake Moshenko 2014-05-06 14:17:57 -04:00
parent 4059c6ccbb
commit bd63ea98f3

View file

@ -7,9 +7,7 @@ logging.getLogger('boto').setLevel(logging.CRITICAL)
from data.database import ImageStorage
from app import storage
logger.info('Total image storages: %s', ImageStorage.select().count())
for image_storage in ImageStorage.select().where(ImageStorage.uploading == None).limit(1000):
for image_storage in ImageStorage.select().where(ImageStorage.uploading == None):
mark_path = storage.image_mark_path(None, None, None, image_storage.uuid)
json_path = storage.image_json_path(None, None, None, image_storage.uuid)