Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto-generated Tome of Beasts 2 content. #94

Merged
merged 5 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ RUN pipenv run python manage.py populatedb --append ./data/tome_of_beasts/
#add the creature codex
RUN pipenv run python manage.py populatedb --append ./data/creature_codex/

#add the tome of beasts 2
RUN pipenv run python manage.py populatedb --append ./data/tome_of_beasts_2/

#build the search index
RUN pipenv run python manage.py update_index --remove

Expand Down
4 changes: 2 additions & 2 deletions api/management/commands/quickload.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

class Command(BaseCommand):
def handle(self, *args, **options):
populate_db='pipenv run python manage.py populatedb --flush ./data/open5e_original/ && pipenv run python manage.py populatedb --append ./data/WOTC_5e_SRD_v5.1/ && pipenv run python manage.py populatedb --append ./data/tome_of_beasts/ && pipenv run python manage.py populatedb --append ./data/creature_codex/'
populate_db='pipenv run python manage.py populatedb --flush ./data/open5e_original/ && pipenv run python manage.py populatedb --append ./data/WOTC_5e_SRD_v5.1/ && pipenv run python manage.py populatedb --append ./data/tome_of_beasts/ && pipenv run python manage.py populatedb --append ./data/creature_codex/ && pipenv run python manage.py populatedb --append ./data/tome_of_beasts_2/'

os.system(populate_db)
os.system(populate_db)
4 changes: 2 additions & 2 deletions api/management/commands/quicksetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ def handle(self, *args, **options):

migrations = 'python manage.py makemigrations && pipenv run python manage.py migrate'
collect_static = 'python manage.py collectstatic --noinput'
populate_db= 'pipenv run python manage.py populatedb --flush ./data/open5e_original/ && pipenv run python manage.py populatedb --append ./data/WOTC_5e_SRD_v5.1/ && pipenv run python manage.py populatedb --append ./data/tome_of_beasts/ && pipenv run python manage.py populatedb --append ./data/creature_codex/'
populate_db= 'pipenv run python manage.py populatedb --flush ./data/open5e_original/ && pipenv run python manage.py populatedb --append ./data/WOTC_5e_SRD_v5.1/ && pipenv run python manage.py populatedb --append ./data/tome_of_beasts/ && pipenv run python manage.py populatedb --append ./data/creature_codex/ && pipenv run python manage.py populatedb --append ./data/tome_of_beasts_2/'
rebuild_index= 'pipenv run python manage.py update_index --remove'

os.system(migrations)
os.system(collect_static)
os.system(populate_db)
os.system(rebuild_index)
os.system(rebuild_index)
Loading