Prepare the backfill uploading flag script for the production run.
This commit is contained in:
parent
4059c6ccbb
commit
bd63ea98f3
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Reference in a new issue