Commit 19dfa8ff by zhaihuitao

update

parent 6d836133
......@@ -18,7 +18,6 @@ username = "rytestalarm"
# password = "reyun.123"
password = "rytestalarm234"
db = "tkio_stream"
dt = datetime.datetime.now().strftime('%Y-%m-%d')
sql = "select num_click from tkio_rpt_source_analysis_day where appid ='b563860ef7f3400a5fe7c0a05f4523e6' and " \
"dt=curdate(); "
......@@ -38,7 +37,7 @@ count = r[0]
p = requests.get(url=URL, params=param, timeout=30, verify=False)
time.sleep(360)
time.sleep(250)
mysqlCon = MysqlCon(host=host, username=username, password=password, db=db)
r = mysqlCon.get_one(sql=sql)
......@@ -47,4 +46,5 @@ print(count, num)
if count + 1 == num:
print("指标确认正常")
else:
print("指标异常,请关注")
# print("指标异常,请关注")
1/0
\ No newline at end of file
......@@ -10,4 +10,5 @@ sys.path.append(rootPath)
sql = "select num_click from tkio_rpt_source_analysis_day where appid ='b563860ef7f3400a5fe7c0a05f4523e6' and " \
"dt=curdate(); "
print(sys.path)
print(rootPath)
\ No newline at end of file
print(rootPath)
print(1/0)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment