Skip to content

Commit

Permalink
Merge pull request #17 from eepMoody/cleanup-json
Browse files Browse the repository at this point in the history
Cleanup json
  • Loading branch information
eepMoody authored Sep 2, 2019
2 parents ee983b5 + cc3db8a commit 39d7553
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ local.env
selfsigned.*

**/.DS_Store
staticfiles/
db\.sqlite3

staticfiles/

server/whoosh_index/
6 changes: 6 additions & 0 deletions api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class SpellViewSet(viewsets.ModelViewSet):
"""
queryset = Spell.objects.all()
serializer_class = SpellSerializer
search_fields = ['dnd_class', 'name']
ordering_fields = '__all__'
ordering=['name']
filter_fields = (
'level',
Expand All @@ -66,10 +68,12 @@ class MonsterViewSet(viewsets.ModelViewSet):
"""
queryset = Monster.objects.all()
serializer_class = MonsterSerializer
ordering_fields = '__all__'
ordering=['name']
filter_fields=(
'challenge_rating',
'armor_class',
'type',
'name',
'document',
'document__slug',
Expand All @@ -81,6 +85,7 @@ class BackgroundViewSet(viewsets.ModelViewSet):
"""
queryset = Background.objects.all()
serializer_class = BackgroundSerializer
ordering_fields = '__all__'
ordering=['name']
filter_fields=(
'name',
Expand All @@ -106,6 +111,7 @@ class SectionViewSet(viewsets.ModelViewSet):
"""
queryset = Section.objects.all()
serializer_class = SectionSerializer
ordering_fields = '__all__'
ordering=['name']
filter_fields=(
'name',
Expand Down
2 changes: 1 addition & 1 deletion data/WOTC_5e_SRD_v5.1/spells.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
},
{
"name": "Animate Dead",
"desc": "This spell creates an undead servant. Choose a pile of bones or a corpse of a Medium or Small humanoid within range. Your spell imbues the target with a foul mimicry of life, raising it as an undead creature. The target becomes a skeleton if you chose bones or a zombie if you chose a corpse (the DM has the creature's game statistics). On each of your turns, you can use a bonus action to mentally command any creature you made with this spell if the creature is within 60 feet of you (if you control multiple creatures, you can command any or all of them at the same time, issuing the same command to each one). You decide what action the creature will take and where it will move during its next turn, or you can issue a general command, such as to guard a particular chamber or corridor. If you issue no commands, the creature only defends itself against hostile creatures. Once given an order, the creature continues to follow it until its task is complete. The creature is under your control for 24 hours, after which it stops obeying any command you've given it. To maintain control of the creature for another 24 hours, you must cast this spell on the creature again before the current 24-hour period ends. This use of the spell reasserts your control over up to four creatures you have animated with this spell, rather than animating a new one.",
"desc": "This spell creates an undead servant. Choose a pile of bones or a corpse of a Medium or Small humanoid within range. Your spell imbues the target with a foul mimicry of life, raising it as an undead creature. The target becomes a skeleton if you chose bones or a zombie if you chose a corpse (the DM has the creature's game statistics). On each of your turns, you can use a bonus action to mentally command any creature you made with this spell if the creature is within 60 feet of you (if you control multiple creatures, you can command any or all of them at the same time, issuing the same command to each one). You decide what action the creature will take and where it will move during its next turn, or you can issue a general command, such as to guard a particular chamber or corridor. If you issue no commands, the creature only defends itself against hostile creatures. Once given an order, the creature continues to follow it until its task is complete. The creature is under your control for 24 hours, after which it stops obeying any command you've given it. To maintain control of the creature for another 24 hours, you must cast this spell on the creature again before the current 24-hour period ends. This use of the spell reasserts your control over up to four creatures you have animated with this spell, rather than animating a new one.",
"higher_level": "When you cast this spell using a spell slot of 4th level or higher, you animate or reassert control over two additional undead creatures for each slot level above 3rd. Each of the creatures must come from a different corpse or pile of bones.",
"page": "phb 212",
"range": "10 feet",
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
Binary file removed server/whoosh_index/MAIN_4rlbgb3p0rq5p83d.seg
Binary file not shown.
Empty file removed server/whoosh_index/MAIN_WRITELOCK
Empty file.
Binary file removed server/whoosh_index/MAIN_m0cy8st9j2hcb9bl.seg
Binary file not shown.
Binary file removed server/whoosh_index/MAIN_ocywz2asp2tobqou.seg
Binary file not shown.
Binary file removed server/whoosh_index/MAIN_rm7ioktguf21jrb6.seg
Binary file not shown.
Binary file removed server/whoosh_index/MAIN_s9e3elhixxextzj8.seg
Binary file not shown.
Binary file removed server/whoosh_index/MAIN_vfxa9hknlnl7csix.seg
Binary file not shown.
Binary file removed server/whoosh_index/MAIN_xjczbq8saada6zht.seg
Binary file not shown.
Binary file removed server/whoosh_index/_MAIN_7.toc
Binary file not shown.

0 comments on commit 39d7553

Please sign in to comment.