Skip to content

Commit

Permalink
fix: Remove excess declaration and format files
Browse files Browse the repository at this point in the history
  • Loading branch information
romeonicholas committed Nov 14, 2023
1 parent 98fcdf3 commit 39b1f7a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
import sqlalchemy as sa
from alembic import op


# revision identifiers, used by Alembic.
revision = '0e2028f83156'
down_revision = 'ac0e6e0f77ee'
revision = "0e2028f83156"
down_revision = "ac0e6e0f77ee"
branch_labels = None
depends_on = None


def upgrade():
op.add_column('models', sa.Column('display_order', sa.Integer(), nullable=True))
op.add_column(
"models", sa.Column("display_order", sa.Integer(), nullable=True)
)
3 changes: 0 additions & 3 deletions backend/capellacollab/projects/toolmodels/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ class DatabaseCapellaModel(database.Base):

configuration: orm.Mapped[dict[str, str] | None]

display_order: orm.Mapped[int | None] = orm.mapped_column()

project_id: orm.Mapped[int] = orm.mapped_column(
sa.ForeignKey("projects.id")
)
Expand Down Expand Up @@ -127,6 +125,5 @@ class CapellaModel(pydantic.BaseModel):
nature: tools_models.ToolNatureBase | None = None
git_models: list[GitModel] | None = None
t4c_models: list[T4CModel] | None = None
display_order: int | None = None

restrictions: restrictions_models.ToolModelRestrictions | None = None
9 changes: 8 additions & 1 deletion backend/capellacollab/projects/toolmodels/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,14 @@ def patch_tool_model(
new_project = model.project

return crud.update_model(
db, model, body.description, body.name, version, nature, new_project, body.display_order
db,
model,
body.description,
body.name,
version,
nature,
new_project,
body.display_order,
)


Expand Down

0 comments on commit 39b1f7a

Please sign in to comment.