提交 088de5fa authored 作者: Frederic Bastien's avatar Frederic Bastien

If no stack trace, keep this as an empty list

上级 161787ed
...@@ -94,7 +94,10 @@ def add_tag_trace(thing, user_line=1): ...@@ -94,7 +94,10 @@ def add_tag_trace(thing, user_line=1):
# The order is from the oldest to the newest # The order is from the oldest to the newest
if len(tr) > user_line: if len(tr) > user_line:
tr = tr[-user_line:] tr = tr[-user_line:]
thing.tag.trace = [tr] if tr:
thing.tag.trace = [tr]
else:
thing.tag.trace = tr
return thing return thing
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论