Skip to content

Commit

Permalink
Merge pull request #32 from hsiaoyi0504/patch-1
Browse files Browse the repository at this point in the history
don't need items() when iterating over keys
  • Loading branch information
scream4ik authored Aug 15, 2018
2 parents f3cb2fb + ac841ed commit 7e9ab5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filebrowser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
filter_re = []
for exp in EXCLUDE:
filter_re.append(re.compile(exp))
for k, v in VERSIONS.items():
for k in VERSIONS:
exp = r'_{0}({1})'.format(k, '|'.join(EXTENSION_LIST))
filter_re.append(re.compile(exp))

Expand Down Expand Up @@ -93,7 +93,7 @@ def browse(request):
results_var = {'results_total': 0, 'results_current': 0, 'delete_total': 0,
'images_total': 0, 'select_total': 0}
counter = {}
for k, v in EXTENSIONS.items():
for k in EXTENSIONS:
counter[k] = 0

dir_list = os.listdir(abs_path)
Expand Down

0 comments on commit 7e9ab5e

Please sign in to comment.