mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Serialisation fix
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user