Skip to content

Commit

Permalink
rm dtable_uuid check
Browse files Browse the repository at this point in the history
  • Loading branch information
SkywalkerSpace committed Sep 2, 2020
1 parent 709252e commit 7b70315
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions seatable_thumbnail/validators.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import jwt
import uuid

from seaserv import seafile_api
import seatable_thumbnail.settings as settings
Expand Down Expand Up @@ -85,9 +84,9 @@ def params_check(self):
# dtable_uuid check
workspace_id = int(url_split[2])
dtable_uuid = url_split[4]
dtable_uuid = uuid.UUID(dtable_uuid).hex
if dtable_uuid != self.payload['dtable_uuid']:
raise AssertionError(400, 'dtable_uuid invalid.')
# dtable_uuid = uuid.UUID(dtable_uuid).hex
# if dtable_uuid != self.payload['dtable_uuid']:
# raise AssertionError(400, 'dtable_uuid invalid.')

self.params = {
'workspace_id': workspace_id,
Expand Down

0 comments on commit 7b70315

Please sign in to comment.