提交 768e7573 编辑于 作者: gunkkk's avatar gunkkk
浏览文件

a

上级 e12ab07f
......@@ -234,10 +234,10 @@ def get_logpath(offset, per_page, time=['day',7], keywords=None):
time[0], time[1], keywords, keywords
)
if keywords is None:
sql = 'select dir_name,dir_vmlog,hash_val,close_time,source_address,task_id from task where dir_vmlog <> None and TIMESTAMPDIFF({}, close_time, CURRENT_TIMESTAMP)<={} Order by close_time desc limit {}, {} '.format(
sql = 'select dir_name,dir_vmlog,hash_val,close_time,source_address,task_id from task where dir_vmlog <>"None" and TIMESTAMPDIFF({}, close_time, CURRENT_TIMESTAMP)<={} Order by close_time desc limit {}, {} '.format(
time[0], time[1], offset, per_page
)
sql2 = 'select COUNT(*) from task where dir_vmlog <> None and TIMESTAMPDIFF({}, close_time, CURRENT_TIMESTAMP)<={}'.format(
sql2 = 'select COUNT(*) from task where dir_vmlog<>"None" and TIMESTAMPDIFF({}, close_time, CURRENT_TIMESTAMP)<={}'.format(
time[0], time[1]
)
# try:
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册