diff --git a/app.py b/app.py index f12908578..59e5f218d 100644 --- a/app.py +++ b/app.py @@ -77,6 +77,18 @@ class Notes(Resource): for fmt in note['formatting']: insert("formatting", fmt) + delete("images", note_id) + + for img in note['images']: + img['image_data'] = buffer(base64.b64decode(img['image_data'])) + + insert("images", img) + + delete("links", note_id) + + for link in note['links']: + insert("links", link) + conn.commit() return {} diff --git a/app.pyc b/app.pyc index f9dcc1d22..0eb1fc716 100644 Binary files a/app.pyc and b/app.pyc differ diff --git a/demo.ncdb b/demo.ncdb index 4492dd387..dd86e507a 100644 Binary files a/demo.ncdb and b/demo.ncdb differ diff --git a/frontend/index.html b/frontend/index.html index 3453b47ba..529cebe76 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -51,6 +51,8 @@