Fixed stuff
All checks were successful
continuous-integration/drone/push Build is passing

- Creating a new new object when it isn't supposed
- Serializing enum field
This commit is contained in:
2020-09-14 03:02:31 +02:00
parent bfe2ec8c8c
commit 7a9d098107
2 changed files with 4 additions and 3 deletions

View File

@ -60,8 +60,6 @@ class CNNView(FlaskView):
storage.connection.put_object(current_app.config['MINIO_CNN_BUCKET_NAME'], "weights/" + str(m.id), weights_file,
weights_file.content_length, content_type=weights_file.content_type)
m = AIModel(id=info['id'], type=AIModelType.CNN)
db.session.add(m)
db.session.commit()