Merge branch 'rrt/dev' into dev
This commit is contained in:
commit
3808786f11
|
@ -110,6 +110,7 @@ class FileService(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def update_file(file_model, binary_data, content_type):
|
def update_file(file_model, binary_data, content_type):
|
||||||
|
session.flush() # Assure the database is up-to-date before running this.
|
||||||
|
|
||||||
file_data_model = session.query(FileDataModel). \
|
file_data_model = session.query(FileDataModel). \
|
||||||
filter_by(file_model_id=file_model.id,
|
filter_by(file_model_id=file_model.id,
|
||||||
|
|
Loading…
Reference in New Issue