Commit 758db9fa authored by 刘丙寅's avatar 刘丙寅

更新代码

parent 8eed0739
...@@ -8,7 +8,7 @@ def test(): ...@@ -8,7 +8,7 @@ def test():
from datetime import date, timedelta from datetime import date, timedelta
r = redis.Redis() r = redis.Redis()
today = date.today() today = date.today()
# today = today + timedelta(days=-3) # today = today + timedelta(days=2)
format_today = today.strftime("%Y%m%d") format_today = today.strftime("%Y%m%d")
tomorrow = today + timedelta(days=1) tomorrow = today + timedelta(days=1)
format_tomorrow = tomorrow.strftime("%Y%m%d") format_tomorrow = tomorrow.strftime("%Y%m%d")
...@@ -62,10 +62,15 @@ def test(): ...@@ -62,10 +62,15 @@ def test():
else: else:
new_list = redis_list + peizhi.Personnel_list_new new_list = redis_list + peizhi.Personnel_list_new
# 取出来名字 # 取出来名字
print("redis初始数据")
print(new_list)
for o in range(0, number): for o in range(0, number):
print(number) print(number)
www.append(new_list[0]) www.append(new_list[0])
new_list.remove(new_list[0]) new_list.remove(new_list[0])
print("newlist")
print(new_list)
print("newlist")
r.delete("zhiban") r.delete("zhiban")
r.rpush("zhiban", *new_list) r.rpush("zhiban", *new_list)
phone_list = [] phone_list = []
...@@ -92,7 +97,7 @@ def test(): ...@@ -92,7 +97,7 @@ def test():
} }
requests.post(url=dd_url, json=json_text, verify=False) requests.post(url=dd_url, json=json_text, verify=False)
print(text)
if __name__ == '__main__': if __name__ == '__main__':
test() test()
\ 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