fix migration notification logic
This commit is contained in:
parent
4376b826c4
commit
5e1167743f
|
@ -201,17 +201,17 @@ class Command(BaseCommand):
|
||||||
response, status_code = ElasticWrap(path).post(data=data)
|
response, status_code = ElasticWrap(path).post(data=data)
|
||||||
if status_code == 200:
|
if status_code == 200:
|
||||||
updated = response.get("updated", 0)
|
updated = response.get("updated", 0)
|
||||||
if not updated:
|
if updated:
|
||||||
self.stdout.write(
|
|
||||||
" no videos needed updating in ta_download"
|
|
||||||
)
|
|
||||||
return
|
|
||||||
|
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
self.style.SUCCESS(
|
self.style.SUCCESS(
|
||||||
f" ✓ {updated} videos updated in ta_download"
|
f" ✓ {updated} videos updated in ta_download"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
self.stdout.write(
|
||||||
|
" no videos needed updating in ta_download"
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
message = " 🗙 ta_download auto_start update failed"
|
message = " 🗙 ta_download auto_start update failed"
|
||||||
self.stdout.write(self.style.ERROR(message))
|
self.stdout.write(self.style.ERROR(message))
|
||||||
|
|
Loading…
Reference in New Issue