Skip to content

Commit

Permalink
Merge pull request #373 from open5e/v1_import_export_adjust
Browse files Browse the repository at this point in the history
V1 import export adjust
  • Loading branch information
augustjohnson authored Nov 5, 2023
2 parents 1cee789 + 9485ef4 commit 87253af
Show file tree
Hide file tree
Showing 135 changed files with 200,146 additions and 222,110 deletions.
781 changes: 0 additions & 781 deletions api/management/commands/importer.py

This file was deleted.

180 changes: 0 additions & 180 deletions api/management/commands/populatedb.py

This file was deleted.

41 changes: 0 additions & 41 deletions api/management/commands/quickload.py

This file was deleted.

8 changes: 5 additions & 3 deletions api/management/commands/quicksetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from django.core.management import call_command
from django.core.management.base import BaseCommand

from api.management.commands import quickload

class Command(BaseCommand):
"""Implementation for the `manage.py quicksetup` subcommand."""

Expand All @@ -28,7 +26,7 @@ def handle(self, *args, **options):
collect_static()

self.stdout.write('Populating the v1 database...')
quickload.populate_db()
import_v1()

self.stdout.write('Populating the v2 database...')
import_v2()
Expand All @@ -41,6 +39,10 @@ def handle(self, *args, **options):

self.stdout.write(self.style.SUCCESS('API setup complete.'))

def import_v1() -> None:
"""Import the v1 apps' database models."""
call_command('import', '--dir', 'data/v1')


def import_v2() -> None:
"""Import the v2 apps' database models."""
Expand Down
Loading

0 comments on commit 87253af

Please sign in to comment.