From adcc7801eaa6a4f24f2c01596e82369cc7375b5e Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 27 May 2014 17:18:59 +0200 Subject: Updated JSON export. --- pyaggr3g470r/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pyaggr3g470r/utils.py') 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): """ -- cgit