diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-04-03 10:39:14 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-04-03 10:39:14 +0200 |
commit | a7929dc1d904289f5db7df673ff788c4ca89c68f (patch) | |
tree | fd5cc3201492c048c524283a65138c5b9187b6df /newspipe | |
parent | speed improvements to the /history page (diff) | |
download | newspipe-a7929dc1d904289f5db7df673ff788c4ca89c68f.tar.gz newspipe-a7929dc1d904289f5db7df673ff788c4ca89c68f.tar.bz2 newspipe-a7929dc1d904289f5db7df673ff788c4ca89c68f.zip |
fixed erros reported by flake.
Diffstat (limited to 'newspipe')
-rw-r--r-- | newspipe/web/views/feed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newspipe/web/views/feed.py b/newspipe/web/views/feed.py index 11c91b52..5fa2070b 100644 --- a/newspipe/web/views/feed.py +++ b/newspipe/web/views/feed.py @@ -293,7 +293,7 @@ def process_form(feed_id=None): del feed_attr["link"] del feed_attr["site_link"] # remove keys with empty strings - feed_attr = {k: v for k, v in feed_attr.items() if v is not ""} + feed_attr = {k: v for k, v in feed_attr.items() if v != ""} feed.update(feed_attr) new_feed = feed_contr.create(**feed) |