diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-08-25 11:24:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-25 11:24:27 +0200 |
| commit | 38e0b9360b6a04908c6b8cdbdbd7a15cbdaf19b1 (patch) | |
| tree | 7c156a017b837e49ecb77ca9886d89e20ef7c069 /searx/utils.py | |
| parent | dec9df28f3e37c5793e53898dd63419660230b4e (diff) | |
| parent | 697ebeddcc6066e5c5f316c9ef2baf8d3769a868 (diff) | |
Merge pull request #257 from dalf/mod_image_proxy
Mod image proxy
Diffstat (limited to 'searx/utils.py')
| -rw-r--r-- | searx/utils.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/searx/utils.py b/searx/utils.py index 5e2ab18c4..22824d829 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -262,11 +262,7 @@ def dict_subset(d, properties): >>> >> dict_subset({'A': 'a', 'B': 'b', 'C': 'c'}, ['A', 'D']) {'A': 'a'} """ - result = {} - for k in properties: - if k in d: - result[k] = d[k] - return result + return {k: d[k] for k in properties if k in d} def get_torrent_size(filesize, filesize_multiplier): |