diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2022-01-02 01:19:19 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2022-01-02 01:19:19 +0100 |
commit | e206de09468fabcc5bcd83bd1de0ff656b8c8150 (patch) | |
tree | 23a372ac3e3d24840edd373e3399383bff10cf82 /newspipe/web/views/user.py | |
parent | Updated psycopg2-binary. (diff) | |
download | newspipe-e206de09468fabcc5bcd83bd1de0ff656b8c8150.tar.gz newspipe-e206de09468fabcc5bcd83bd1de0ff656b8c8150.tar.bz2 newspipe-e206de09468fabcc5bcd83bd1de0ff656b8c8150.zip |
various !minor fixes
Diffstat (limited to 'newspipe/web/views/user.py')
-rw-r--r-- | newspipe/web/views/user.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newspipe/web/views/user.py b/newspipe/web/views/user.py index 6643cbca..c20777e7 100644 --- a/newspipe/web/views/user.py +++ b/newspipe/web/views/user.py @@ -101,7 +101,7 @@ def management(): Display the management page. """ if request.method == "POST": - if None != request.files.get("opmlfile", None): + if None is not request.files.get("opmlfile", None): # Import an OPML file data = request.files.get("opmlfile", None) if not misc_utils.allowed_file(data.filename): @@ -115,7 +115,7 @@ def management(): flash(gettext("Downloading articles..."), "info") except Exception: flash(gettext("Impossible to import the new feeds."), "danger") - elif None != request.files.get("jsonfile", None): + elif None is not request.files.get("jsonfile", None): # Import an account data = request.files.get("jsonfile", None) if not misc_utils.allowed_file(data.filename): |