Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tddough98 committed Dec 15, 2020
1 parent 94b0ae5 commit 08084d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions browser/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
DASHBOARD_CONFIG = config('DASHBOARD_CONFIG', default='')

# Flask-Dropzone
DROPZONE_MAX_FILE_SIZE = config('DROPZONE_MAX_FILE_SIZE', default=128), # measured in MB
DROPZONE_TIMEOUT = config('DROPZONE_TIMEOUT', default=60*1000) # measured in ms
DROPZONE_MAX_FILE_SIZE = config('DROPZONE_MAX_FILE_SIZE', default=128) # measured in MB
DROPZONE_TIMEOUT = config('DROPZONE_TIMEOUT', default=60 * 1000) # measured in ms

# Compression settings
COMPRESS_MIMETYPES = ['text/html', 'text/css', 'text/xml',
Expand Down
6 changes: 3 additions & 3 deletions browser/helpers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os

ALLOWED_TRACK_EXTENSIONS = set(['.trk', '.trks'])

ALLOWED_TRACK_EXTENSIONS = set(['.trk', '.trks'])
ALLOWED_ZSTACK_EXTENSIONS = set(['.npz', '.png', '.tif', '.tiff'])

ALLOWED_EXTENSIONS = ALLOWED_TRACK_EXTENSIONS | ALLOWED_ZSTACK_EXTENSIONS


def allowed_file(name):
return os.path.splitext(str(name).lower())[-1] in ALLOWED_EXTENSIONS

Expand All @@ -31,4 +31,4 @@ def is_zstack_file(name):
Returns:
bool: True if the file is npz, otherwise False.
'''
return os.path.splitext(str(name).lower())[-1] in ALLOWED_ZSTACK_EXTENSIONS
return os.path.splitext(str(name).lower())[-1] in ALLOWED_ZSTACK_EXTENSIONS

0 comments on commit 08084d3

Please sign in to comment.