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

Serialisation fix

This commit is contained in:
2018-03-17 18:41:24 +01:00
parent c4f921ac68
commit 3516fbfbb2

View File

@@ -797,7 +797,12 @@ def publictag_json(tagkey):
""" json representation of the Read-only overview of the bookmarks in the userkey/tag of this PublicTag """ """ json representation of the Read-only overview of the bookmarks in the userkey/tag of this PublicTag """
try: try:
this_tag, bookmarks = get_publictag(tagkey) this_tag, bookmarks = get_publictag(tagkey)
result = {'count': len(bookmarks), 'items': []} result = {
#'tag': this_tag,
'tagkey': tagkey,
'count': len(bookmarks),
'items': [],
}
for bookmark in bookmarks: for bookmark in bookmarks:
result['items'].append(bookmark.to_dict()) result['items'].append(bookmark.to_dict())
return jsonify(result) return jsonify(result)