Browse Source

fix bug 为删除的评论保留name

master
hole-thu 5 years ago
parent
commit
6684fd761e
  1. 2
      utils.py

2
utils.py

@ -56,7 +56,7 @@ def map_comment(p, name):
'text': c.content, 'text': c.content,
'timestamp': c.timestamp, 'timestamp': c.timestamp,
'can_del': check_can_del(name, c.name_hash) 'can_del': check_can_del(name, c.name_hash)
} for c in p.comments if not c.deleted } for c in p.comments if not (c.deleted and gen_name_id(c.name_hash)>=0)
] ]
def map_syslog(s): def map_syslog(s):

Loading…
Cancel
Save