fix --> remove print qs on last lines in sync_livestocks mangement
This commit is contained in:
@@ -151,12 +151,11 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
Tag.objects.bulk_create(new_tags, batch_size=BATCH_SIZE)
|
Tag.objects.bulk_create(new_tags, batch_size=BATCH_SIZE)
|
||||||
ss = LiveStock.objects.bulk_create(
|
LiveStock.objects.bulk_create(
|
||||||
new_livestock,
|
new_livestock,
|
||||||
batch_size=BATCH_SIZE,
|
batch_size=BATCH_SIZE,
|
||||||
ignore_conflicts=True
|
ignore_conflicts=True
|
||||||
)
|
)
|
||||||
print(ss)
|
|
||||||
LiveStock.objects.bulk_update(
|
LiveStock.objects.bulk_update(
|
||||||
updated_livestock,
|
updated_livestock,
|
||||||
['tag'],
|
['tag'],
|
||||||
|
|||||||
Reference in New Issue
Block a user