fix: resolve startup errors and model inconsistencies #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/buxfixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Collection of bug fixes discovered during first full startup attempt.
Backend now starts without errors.
Fixes
main.py
app.include_router()called beforeFastAPI()instantiationengine,SessionLocal,settings)city,user,guild) forcreate_allguildsrouterget_dbimportbase_dexterityandbase_willpowerto HeroClass seed dataquest.py
Floatto SQLAlchemy importsQuestStatusenum (was missing after earlier edits)city,npc,QuestEventInstance)guild.py / guilds.py
from pydantic import BaseModelto guilds.pyGuildTypeenum import where missingconfig.py
ALLOWED_ORIGINSparsing — requires JSON array format in.envNotes
Many of these bugs accumulated from design-first development without
running the server between changes. Going forward: start server after
each significant model change to catch import errors early.