diff --git a/DBEditor/DBEditor.py b/DBEditor/DBEditor.py index 9bcda8c..6e44b87 100644 --- a/DBEditor/DBEditor.py +++ b/DBEditor/DBEditor.py @@ -185,6 +185,14 @@ class DBEditor(QMainWindow): REFERENCES exclusive_encounter_groups (id) ''') + if 'starter' not in columns: + # If the column doesn't exist, add it + cursor.execute(''' + ALTER TABLE encounters + ADD COLUMN starter BOOLEAN + ''') + + def load_and_apply_patches(self): try: with open('patches.json', 'r') as f: diff --git a/DataGatherers/Update_evolution_information.py b/DataGatherers/Update_evolution_information.py index e4032fb..538816c 100644 --- a/DataGatherers/Update_evolution_information.py +++ b/DataGatherers/Update_evolution_information.py @@ -3,7 +3,7 @@ from typing import List, Optional from dataclasses import dataclass from fuzzywuzzy import fuzz import re -from DataGatherers.cache_manager import CacheManager +from cache_manager import CacheManager from DetermineOriginGame import get_evolution_data_from_bulbapedia @dataclass diff --git a/DataGatherers/pokemondb_scraper.py b/DataGatherers/pokemondb_scraper.py index 93ede61..8a0445a 100644 --- a/DataGatherers/pokemondb_scraper.py +++ b/DataGatherers/pokemondb_scraper.py @@ -4,7 +4,7 @@ from typing import Dict, List, Optional from dataclasses import dataclass, asdict import os import sqlite3 -from DataGatherers.cache_manager import CacheManager +from cache_manager import CacheManager @dataclass class PokemonForm: diff --git a/pokemon_forms.db b/pokemon_forms.db index 981df6a..cf8b763 100644 Binary files a/pokemon_forms.db and b/pokemon_forms.db differ