diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-10 07:33:55 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-10 07:33:55 +0200 |
commit | b9c87898dacf5b671dc1fb8ddfd7d2bd3e1de868 (patch) | |
tree | 9dd6159e3d7768ed04d670053692ca01ac027fb4 /pyaggr3g470r/views.py | |
parent | Fixed a problem when running in standalone mode. (diff) | |
download | newspipe-b9c87898dacf5b671dc1fb8ddfd7d2bd3e1de868.tar.gz newspipe-b9c87898dacf5b671dc1fb8ddfd7d2bd3e1de868.tar.bz2 newspipe-b9c87898dacf5b671dc1fb8ddfd7d2bd3e1de868.zip |
Not writing JSON file when importing an account.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 1dd651e5..cfd60206 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -570,10 +570,8 @@ def management(): if not allowed_file(data.filename): flash(gettext('File not allowed.'), 'danger') else: - json_path = os.path.join("./pyaggr3g470r/var/", data.filename) - data.save(json_path) try: - nb = utils.import_json(g.user.email, json_path) + nb = utils.import_json(g.user.email, data.read()) flash(gettext('Account imported.'), "success") except: flash(gettext("Impossible to import the account."), "danger") |