fix bug
This commit is contained in:
parent
79672cc9ff
commit
f6c332cdbf
|
@ -282,7 +282,7 @@ class UploadSnapshotForm(FlaskForm, SnapshotMix):
|
|||
|
||||
if commit:
|
||||
db.session.commit()
|
||||
return response
|
||||
return self.result
|
||||
|
||||
|
||||
class NewDeviceForm(FlaskForm):
|
||||
|
|
|
@ -48,7 +48,9 @@ def upgrade():
|
|||
sa.PrimaryKeyConstraint('id'),
|
||||
schema=f'{get_inv()}',
|
||||
)
|
||||
op.execute(f"CREATE SEQUENCE {get_inv()}.snapshot_errors_seq START 1;")
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_table('snapshot_errors', schema=f'{get_inv()}')
|
||||
op.execute(f"DROP SEQUENCE {get_inv()}.snapshot_errors_seq;")
|
||||
|
|
Reference in New Issue