diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-27 17:18:59 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-27 17:18:59 +0200 |
commit | adcc7801eaa6a4f24f2c01596e82369cc7375b5e (patch) | |
tree | 0190c083ad8f508ff455037e6f632572864300f0 /pyaggr3g470r/utils.py | |
parent | Updated translations. (diff) | |
download | newspipe-adcc7801eaa6a4f24f2c01596e82369cc7375b5e.tar.gz newspipe-adcc7801eaa6a4f24f2c01596e82369cc7375b5e.tar.bz2 newspipe-adcc7801eaa6a4f24f2c01596e82369cc7375b5e.zip |
Updated JSON export.
Diffstat (limited to 'pyaggr3g470r/utils.py')
-rwxr-xr-x | pyaggr3g470r/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyaggr3g470r/utils.py b/pyaggr3g470r/utils.py index 2ed828f6..6e23e12c 100755 --- a/pyaggr3g470r/utils.py +++ b/pyaggr3g470r/utils.py @@ -130,6 +130,12 @@ def import_opml(email, opml_file): db.session.commit() return nb +def import_json(email, json_file): + """ + Import an account from a JSON file. + """ + user = User.query.filter(User.email == email).first() + def clean_url(url): """ |