Skip to content
Snippets Groups Projects
Commit 447c5f8e authored by Remco Tukker's avatar Remco Tukker
Browse files

fix test/linter

parent ca123a7c
No related branches found
No related tags found
1 merge request!52Feature/admin workflow surveys page
......@@ -45,7 +45,7 @@ class Survey(db.Model):
__tablename__ = 'survey'
year: Mapped[int_pk]
survey: Mapped[json]
responses: Mapped[List[SurveyResponse]] = relationship(lazy='joined', back_populates="survey")
responses: Mapped[List[SurveyResponse]] = relationship(back_populates="survey")
status: Mapped[SurveyStatus]
......
......@@ -26,10 +26,14 @@ def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('survey', schema=None) as batch_op:
batch_op.add_column(sa.Column('status', sa.Enum('closed', 'open', 'published', name='surveystatus'), nullable=False))
batch_op.add_column(
sa.Column('status', sa.Enum('closed', 'open', 'published', name='surveystatus'), nullable=False)
)
with op.batch_alter_table('survey_response', schema=None) as batch_op:
batch_op.add_column(sa.Column('status', sa.Enum('started', 'completed', 'checked', name='responsestatus'), nullable=False))
batch_op.add_column(
sa.Column('status', sa.Enum('started', 'completed', 'checked', name='responsestatus'), nullable=False)
)
# ### end Alembic commands ###
......
......@@ -6,7 +6,6 @@ from typing import Any, Optional
from flask import Blueprint, jsonify, request
from sqlalchemy import select
from sqlalchemy.orm import joinedload, load_only
from compendium_v2.db import db
from compendium_v2.db.model import NREN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment