diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2020-08-02 09:40:22 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2020-08-02 09:40:22 +0200 |
commit | 839866b6bb85218bb54073f2f486116637c37176 (patch) | |
tree | 70badb43d616225ccdfabac9fe1b9fc074613ec4 /fbin | |
parent | a8c8728c223e72ff843faba5aed7de2d2d5330e1 (diff) |
Add missing values() call to scan result check
scans is a dict, not a list, so we need to call values() to retrieve the
result dicts.
Diffstat (limited to 'fbin')
-rwxr-xr-x | fbin/fbin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fbin/fbin.py b/fbin/fbin.py index 02337f5..fce6ea5 100755 --- a/fbin/fbin.py +++ b/fbin/fbin.py @@ -193,7 +193,7 @@ def _file(hash, ext=None, filename=None): f = get_file(hash) if not f or (f.blocked_reason and (f.blocked_reason['positives'] >= current_app.config['VIRUSTOTAL_MINIMUM_POSITIVES'] \ or any(scan['detected'] and scan['result'] in current_app.config['VIRUSTOTAL_SINGULAR_MATCHES'] - for scan in f.blocked_reason['scans']))): + for scan in f.blocked_reason['scans'].values()))): abort(404) path = storage.get_file(f) if isinstance(path, Response): |