From 138f1c6ed4a4718847a5f12afa4e910c4dcaecdc Mon Sep 17 00:00:00 2001 From: Fuynkio Date: Tue, 3 Oct 2023 16:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=B9=8B=E5=90=8E=E4=B8=8D=E4=BC=9A=E7=B4=AF?= =?UTF-8?q?=E5=8A=A0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/utils/depot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arknights_mower/utils/depot.py b/arknights_mower/utils/depot.py index 6f32ceea6..2ab6259c8 100644 --- a/arknights_mower/utils/depot.py +++ b/arknights_mower/utils/depot.py @@ -19,9 +19,10 @@ def process_itemlist(d): # Check if file exists, if not, create the file if not os.path.exists(depot_file): with open(depot_file, "w", newline="", encoding="utf-8") as csvfile: - fieldnames = itemlist.keys() + fieldnames = ["时间", "data"] writer = csv.DictWriter(csvfile, fieldnames=fieldnames) writer.writeheader() + writer.writerow({"时间": current_datetime, "data": '{"空":0}'}) # Append data to the CSV file with open(depot_file, "a", newline="", encoding="utf-8") as csvfile: