提交 494adbbd authored 作者: zw.wang's avatar zw.wang

fix: [mysql] 修复mysql查询未处理摄像头sql语句错误

上级 d6f5eb7a
......@@ -158,7 +158,7 @@ def update_video_info(cursor, conn, db_table, video_id, status,
def get_untreated_events(cursor, conn, db_table, camera_code, status=3, **kw):
if 'retry' in kw:
sub_str = '(status = 2 and next_retry_time < now()) or status = 3'
sub_str = '((status = 2 and next_retry_time < now()) or status = 3)'
else:
sub_str = 'status = {}'.format(status)
......
......@@ -23,7 +23,7 @@ requires = [
setuptools.setup(
name='isc-video-record',
version='1.0.0a15',
version='1.0.0a16',
description='ISC motion detection playback video stream recording service.',
long_description=long_description,
long_description_content_type='text/markdown',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论