From d2bed7c859440fded321793c4f83619e7a26578b Mon Sep 17 00:00:00 2001 From: evilchili Date: Sun, 12 May 2024 11:20:52 -0700 Subject: [PATCH] rename property module --- src/ttfrog/db/schema/__init__.py | 2 +- src/ttfrog/db/schema/character.py | 2 +- src/ttfrog/db/schema/classes.py | 2 +- src/ttfrog/db/schema/{property.py => skill.py} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/ttfrog/db/schema/{property.py => skill.py} (93%) diff --git a/src/ttfrog/db/schema/__init__.py b/src/ttfrog/db/schema/__init__.py index 4cc29f8..8abc119 100644 --- a/src/ttfrog/db/schema/__init__.py +++ b/src/ttfrog/db/schema/__init__.py @@ -2,4 +2,4 @@ from .character import * from .classes import * from .log import * from .modifiers import * -from .property import * +from .skill import * diff --git a/src/ttfrog/db/schema/character.py b/src/ttfrog/db/schema/character.py index 8a5703f..37e6ee0 100644 --- a/src/ttfrog/db/schema/character.py +++ b/src/ttfrog/db/schema/character.py @@ -5,7 +5,7 @@ from sqlalchemy.orm import Mapped, mapped_column, relationship from ttfrog.db.base import BaseObject, SlugMixin from ttfrog.db.schema.classes import CharacterClass, ClassAttribute from ttfrog.db.schema.modifiers import Modifier, ModifierMixin, Stat -from ttfrog.db.schema.property import Skill +from ttfrog.db.schema.skill import Skill __all__ = [ "Ancestry", diff --git a/src/ttfrog/db/schema/classes.py b/src/ttfrog/db/schema/classes.py index bf14ef0..512be04 100644 --- a/src/ttfrog/db/schema/classes.py +++ b/src/ttfrog/db/schema/classes.py @@ -6,7 +6,7 @@ from sqlalchemy.ext.associationproxy import association_proxy from sqlalchemy.orm import Mapped, mapped_column, relationship from ttfrog.db.base import BaseObject -from ttfrog.db.schema.property import Skill +from ttfrog.db.schema.skill import Skill __all__ = [ "ClassAttributeMap", diff --git a/src/ttfrog/db/schema/property.py b/src/ttfrog/db/schema/skill.py similarity index 93% rename from src/ttfrog/db/schema/property.py rename to src/ttfrog/db/schema/skill.py index edabd88..c2be76a 100644 --- a/src/ttfrog/db/schema/property.py +++ b/src/ttfrog/db/schema/skill.py @@ -14,4 +14,4 @@ class Skill(BaseObject): name: Mapped[str] = mapped_column(String(collation="NOCASE"), nullable=False, unique=True) base_id: Mapped[int] = mapped_column(ForeignKey("skill.id"), nullable=True, default=None) - parent: Mapped["Skill"] = relationship(init=False, remote_side=id, uselist=False, lazy="immediate") + parent: Mapped["Skill"] = relationship(init=False, remote_side=id, uselist=False)