Skip to content

Commit

Permalink
Merge pull request #12 from seatable/fix-session-key
Browse files Browse the repository at this point in the history
fix session_key
  • Loading branch information
freeplant authored Jul 5, 2021
2 parents 52dd285 + e13bc0f commit 5067ce9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seatable_thumbnail/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def parse_django_session(self, session_data):

def session_check(self):
session_key = self.request.cookies[settings.SESSION_KEY]
session_key = session_key.rstrip(';')
django_session = self.db_session.query(
DjangoSession).filter_by(session_key=session_key).first()
self.session_data = self.parse_django_session(django_session.session_data)
Expand Down

0 comments on commit 5067ce9

Please sign in to comment.