update outputs 🚀 with clean level attribute

main
Nicolas FRANCO 2 years ago
parent c16c6cda47
commit 003bd32c8f

@ -2,7 +2,7 @@ import yaml
import sqlite3 import sqlite3
def createDatabase(): def createDatabase():
connexion = sqlite3.connect('database/spells.db') connexion = sqlite3.connect('outputs/spells.db')
cursor = connexion.cursor() cursor = connexion.cursor()
cursor.execute('''DROP TABLE IF EXISTS spell''') cursor.execute('''DROP TABLE IF EXISTS spell''')
@ -29,7 +29,7 @@ def insertSpells():
with open('outputs/spells.yaml', 'r') as file: with open('outputs/spells.yaml', 'r') as file:
spells = yaml.safe_load(file) spells = yaml.safe_load(file)
connexion = sqlite3.connect('assets/spells.db') connexion = sqlite3.connect('outputs/spells.db')
cursor = connexion.cursor() cursor = connexion.cursor()
for name, spell in spells.items(): for name, spell in spells.items():

Binary file not shown.

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save