aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/utils.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-27 17:18:59 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-27 17:18:59 +0200
commitadcc7801eaa6a4f24f2c01596e82369cc7375b5e (patch)
tree0190c083ad8f508ff455037e6f632572864300f0 /pyaggr3g470r/utils.py
parentUpdated translations. (diff)
downloadnewspipe-adcc7801eaa6a4f24f2c01596e82369cc7375b5e.tar.gz
newspipe-adcc7801eaa6a4f24f2c01596e82369cc7375b5e.tar.bz2
newspipe-adcc7801eaa6a4f24f2c01596e82369cc7375b5e.zip
Updated JSON export.
Diffstat (limited to 'pyaggr3g470r/utils.py')
-rwxr-xr-xpyaggr3g470r/utils.py6
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):
"""
bgstack15