We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@register.filter(name='cmd2str') def cmd2str(obj): try: return json.loads(obj)['cmd'] except ValueError: return eval(obj)[u'cmd']
@register.filter(name='kwargs2str') def kwargs2str(obj): list_1 = [] _list = obj.values_list("kwargs", flat=True) for v in list(list(_list)): list_1.append(v['cmd']) return list(set(list_1))
以上两个报错都是关于‘cmd’的报错
The text was updated successfully, but these errors were encountered:
这里应该是格式化处理的问题,后面的版本我会更改的。
Sorry, something went wrong.
No branches or pull requests
前提条件:任务列表中添加任意某任务(如debug_task),若arguments和keyword argument分别为[],{}
触发场景:
报错为:“cmd”字符串
报错代码位置:templatetag/mytag.py中的cmd2str函数
报错信息为: string indices must be integers
报错代码位置:templatetag/mytag.py中的kwargs2str函数
以上两个报错都是关于‘cmd’的报错
The text was updated successfully, but these errors were encountered: