Merge pull request #72 from sartography/testing

Testing
This commit is contained in:
Aaron Louie 2020-05-20 10:45:00 -04:00 committed by GitHub
commit 976285fa3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ class FileService(object):
@staticmethod
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). \
filter_by(file_model_id=file_model.id,