Skip to content

Commit

Permalink
Adding environment to search.
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjohnson committed Jun 1, 2024
1 parent 6f650fc commit 0f056f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api_v2/management/commands/buildindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def load_v1_content(self, model):

def load_v2_content(self, model):
results = []
standard_v2_models = ['Item','Spell','Creature','CharacterClass','Race','Feat','Condition','Background']
standard_v2_models = ['Item','Spell','Creature','CharacterClass','Race','Feat','Condition','Background','Environment']

if model.__name__ in standard_v2_models:
for o in model.objects.all():
Expand Down Expand Up @@ -149,6 +149,7 @@ def handle(self, *args, **options):
self.load_content(v2.Feat,"v2")
self.load_content(v2.Condition,"v2")
self.load_content(v2.Background,"v2")
self.load_content(v2.Environment,"v2")

# Take the content table's current data and load it into the index.
self.load_index()
Expand Down

0 comments on commit 0f056f6

Please sign in to comment.