fix: 市场改为勾选列表,楼宇结果输出改为 GBK

This commit is contained in:
nixevol
2026-09-16 17:33:41 +08:00
parent 53c5979917
commit 4cef0b769e
6 changed files with 27 additions and 21 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class AsyncBuildingsTest(unittest.IsolatedAsyncioTestCase):
self.addCleanup(settings.stop)
def read_rows(self):
with self.output.open(encoding="utf-8-sig", newline="") as source:
with self.output.open(encoding="gbk", newline="", errors="replace") as source:
reader = csv.DictReader(source)
return reader.fieldnames, list(reader)