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

Cleanup json #17

Merged
merged 4 commits into from
Sep 2, 2019
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
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.