This commit is contained in:
DingZQ
2025-03-22 13:26:25 +08:00
parent ea09d71604
commit 434805029b
2 changed files with 25 additions and 3 deletions

View File

@@ -5,6 +5,18 @@ import shutil
import redis
import urllib.request
def queryallrecordsbydate(date: str):
print(f'queryallrecordsbydate: {date}')
try:
response = urllib.request.urlopen(f'http://localhost/queryallrecordsbydate/?querydate={date}')
html = response.read().decode('utf-8')
#print(html)
except urllib.error.URLError as e:
print("Error")
def queryallrecordsbydatewithtype(date: str):
print(f'queryallrecordsbydatewithtype: {date}')
@@ -90,6 +102,7 @@ def auto_cache_data():
str_prev_day = prev_day.strftime('%Y-%m-%d')
print(str_prev_day)
queryallrecordsbydate(str_prev_day)
queryallrecordsbydatewithtype(str_prev_day)
queryallrecordsbydateproperty(str_prev_day)
queryallscadarecordsbydate(str_prev_day)