Refine
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user