image saving support, link saving support, upgrade of summernote

This commit is contained in:
azivner
2017-06-10 22:08:53 -04:00
parent 96788ccf3d
commit 4f7bb4f5d8
56 changed files with 538 additions and 218 deletions

12
app.py
View File

@@ -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 {}