From b3351ba6f8322dbf9c0216e40365f024057896bd Mon Sep 17 00:00:00 2001 From: DingZQ Date: Wed, 19 Mar 2025 22:27:36 +0800 Subject: [PATCH] Refine --- auto_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_cache.py b/auto_cache.py index e993624..777bfb0 100644 --- a/auto_cache.py +++ b/auto_cache.py @@ -7,7 +7,7 @@ import urllib.request def query_all_records_by_date_with_type_flow(date: str): try: - response = urllib.request.urlopen('localhost/queryallrecordbydatewithtype/?querydate={date}&querytype=flow') + response = urllib.request.urlopen(f'localhost/queryallrecordbydatewithtype/?querydate={date}&querytype=flow') html = response.read().decode('utf-8') print(html) except urllib.error.URLError as e: