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 96d764c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion seatable_thumbnail/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# environment
# sys.path.append('/opt/seafile/lib/python3.6/site-packages')
# os.environ['CCNET_CONF_DIR'] = '/opt/seafile/conf'
# os.environ['SEAFILE_CONF_DIR'] = '/opt/seafile/conf'
# os.environ['SEAFILE_CONF_DIR'] = '/opt/seafile/conf/seafile'
# os.environ['SEAFILE_CENTRAL_CONF_DIR'] = '/opt/seafile/conf'

#
ENABLE_VIDEO_THUMBNAIL = False
Expand Down
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 96d764c

Please sign in to comment.