Skip to content

Commit

Permalink
clear sqlalchemy session cache
Browse files Browse the repository at this point in the history
  • Loading branch information
SkywalkerSpace committed Sep 7, 2020
1 parent 5b78f08 commit 4e42e50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seatable_thumbnail/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def resource_check(self):
workspace_id = self.params['workspace_id']
file_path = self.params['file_path']
size = self.params['size']

session.commit() # clear session cache
workspace = session.query(
Workspaces).filter_by(id=workspace_id).first()
repo_id = workspace.repo_id
Expand Down

0 comments on commit 4e42e50

Please sign in to comment.