1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Support for notes

This commit is contained in:
2016-08-16 21:24:40 +02:00
parent 7c24057d35
commit d39d793460
3 changed files with 12 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ class Bookmark(db.Model):
title = CharField(default='')
url = CharField()
note = TextField(default='')
#image = CharField(default='')
url_hash = CharField(default='')
tags = CharField(default='')
@@ -346,6 +347,7 @@ def updatebookmark(userkey, request, urlhash = None):
title = request.form.get('title')
url = request.form.get('url')
tags = request.form.get('tags')
note = request.form.get('note')
starred = False
if request.form.get('starred'):
starred = True
@@ -374,6 +376,7 @@ def updatebookmark(userkey, request, urlhash = None):
bookmark.url = url
bookmark.starred = starred
bookmark.set_tags(tags)
bookmark.note = note
bookmark.set_hash()
#bookmark.fetch_image()
if not title: