mirror of
https://github.com/sstent/AICyclingCoach.git
synced 2026-01-25 08:34:51 +00:00
sync - tui loads but no data in views
This commit is contained in:
Binary file not shown.
@@ -20,6 +20,7 @@ AsyncSessionLocal = sessionmaker(
|
||||
expire_on_commit=False
|
||||
)
|
||||
|
||||
# Base is now defined here and imported by models
|
||||
Base = declarative_base()
|
||||
|
||||
async def get_db() -> AsyncSession:
|
||||
|
||||
Binary file not shown.
@@ -1,8 +1,8 @@
|
||||
from datetime import datetime
|
||||
from sqlalchemy import Column, Integer, DateTime
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
|
||||
Base = declarative_base()
|
||||
# Import Base from database.py to ensure models use the same Base instance
|
||||
from ..database import Base
|
||||
|
||||
class BaseModel(Base):
|
||||
__abstract__ = True
|
||||
|
||||
Reference in New Issue
Block a user