Comment out additional command calls after importing campaigns
All checks were successful
Deploy to Server / deploy (push) Successful in 17s
All checks were successful
Deploy to Server / deploy (push) Successful in 17s
This commit is contained in:
parent
a8747791c0
commit
ef2010464c
1 changed files with 6 additions and 8 deletions
|
|
@ -16,7 +16,6 @@ from colorama import Fore
|
||||||
from colorama import Style
|
from colorama import Style
|
||||||
from colorama import init as colorama_init
|
from colorama import init as colorama_init
|
||||||
from django.core.files.base import ContentFile
|
from django.core.files.base import ContentFile
|
||||||
from django.core.management import call_command
|
|
||||||
from django.core.management.base import BaseCommand
|
from django.core.management.base import BaseCommand
|
||||||
from django.core.management.base import CommandError
|
from django.core.management.base import CommandError
|
||||||
from pydantic import ValidationError
|
from pydantic import ValidationError
|
||||||
|
|
@ -702,7 +701,7 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
return channel_obj
|
return channel_obj
|
||||||
|
|
||||||
def process_responses( # noqa: PLR0915
|
def process_responses(
|
||||||
self,
|
self,
|
||||||
responses: list[dict[str, Any]],
|
responses: list[dict[str, Any]],
|
||||||
file_path: Path,
|
file_path: Path,
|
||||||
|
|
@ -804,12 +803,11 @@ class Command(BaseCommand):
|
||||||
f"{Fore.GREEN}✓{Style.RESET_ALL} Created new campaign: {drop_campaign.name}",
|
f"{Fore.GREEN}✓{Style.RESET_ALL} Created new campaign: {drop_campaign.name}",
|
||||||
)
|
)
|
||||||
|
|
||||||
# Always run additional commands after import
|
# # Always run additional commands after import
|
||||||
call_command("download_box_art")
|
# call_command("download_box_art")
|
||||||
call_command("download_campaign_images")
|
# call_command("download_campaign_images")
|
||||||
call_command("convert_images_to_modern_formats")
|
# call_command("convert_images_to_modern_formats")
|
||||||
|
# # After all downloads and processing, mark as fully imported
|
||||||
# After all downloads and processing, mark as fully imported
|
|
||||||
if campaign_obj:
|
if campaign_obj:
|
||||||
campaign_obj.is_fully_imported = True
|
campaign_obj.is_fully_imported = True
|
||||||
campaign_obj.save(update_fields=["is_fully_imported"])
|
campaign_obj.save(update_fields=["is_fully_imported"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue