From dfce4d0398a8bafbb7ad7a31345af181c0269c09 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 15 Apr 2021 15:23:23 -0400 Subject: Added spells --- parser/utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'parser/utils.py') diff --git a/parser/utils.py b/parser/utils.py index 4b7b3f7..087334d 100755 --- a/parser/utils.py +++ b/parser/utils.py @@ -164,6 +164,7 @@ def getSpells(): spell = {} for name in names2names: spell[name] = re.search('(?sm)[\*]*{}[\*:]* (.*?)^[a-zA-Z#\*]'.format(names2names[name]), data).group(1).strip() + spell['name'] = spell['name'].lower() spell['level'] = int(spell['level']) spell['text'] = re.search('(?sm)\*\*Duration:?\*\*:? .*?$(.*)', data).group(1).strip() spell['classes'] = spell['classes'].split() -- cgit v1.2.3