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

fix: [mysql] 修复sql语句错误

上级 6d32c885
...@@ -147,7 +147,7 @@ def update_video_info(cursor, conn, db_table, video_id, status, ...@@ -147,7 +147,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): def get_untreated_events(cursor, conn, db_table, camera_code, status=3, **kw):
if 'retry' in kw: if 'retry' in kw:
sub_str = 'status in (2, 3) and update_time > data_sub(now(), interval 12 hour)' sub_str = 'status in (2, 3) and update_time > date_sub(now(), interval 12 hour)'
else: else:
sub_str = 'status = {}'.format(status) sub_str = 'status = {}'.format(status)
......
...@@ -21,8 +21,8 @@ TIMEZONE = 'Asia/Shanghai' ...@@ -21,8 +21,8 @@ TIMEZONE = 'Asia/Shanghai'
tz = pytz.timezone(TIMEZONE) tz = pytz.timezone(TIMEZONE)
text = """ text = """
\n- 当前处于录制中的摄像头个数为:{} - 当前处于录制中的摄像头个数为:{}
\n- 未处理视频总时长:{} - 未处理视频总时长:{}
""" """
......
...@@ -22,7 +22,7 @@ requires = [ ...@@ -22,7 +22,7 @@ requires = [
setuptools.setup( setuptools.setup(
name='isc-video-record', name='isc-video-record',
version='1.0.0a8', version='1.0.0a9',
description='ISC motion detection playback video stream recording service.', description='ISC motion detection playback video stream recording service.',
long_description=long_description, long_description=long_description,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论