- Creating a new new object when it isn't supposed - Serializing enum field
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user