1
0
Fork 0

Go ahead and bail if no ids to update.

This commit is contained in:
voussoir 2020-11-09 11:07:34 -08:00
parent 8a2e72b5cf
commit c0a59059f5

View file

@ -387,6 +387,10 @@ def update_items_argparse(args):
ids = cur.fetchall() ids = cur.fetchall()
log.info('Updating %d items.', len(ids)) log.info('Updating %d items.', len(ids))
if not ids:
return
ids = [id for (id,) in ids] ids = [id for (id,) in ids]
items = get_items(ids, threads=args.threads) items = get_items(ids, threads=args.threads)