From 154b5fd2438281232f0de12b38a42eca8c4ffa4a Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 12 Apr 2023 11:23:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Fix=20namecard=20parse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metadata/scripts/metadatas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata/scripts/metadatas.py b/metadata/scripts/metadatas.py index fb9bdff9..8caa615b 100644 --- a/metadata/scripts/metadatas.py +++ b/metadata/scripts/metadatas.py @@ -65,10 +65,10 @@ async def update_metadata_from_github(overwrite: bool = True): started = False cell = [] async for line in response.aiter_lines(): - if line == " {\n": + if line == " {\n": started = True continue - if line in [" },\n", " }\n"]: + if line in [" },\n", " }\n"]: started = False if any("MATERIAL_NAMECARD" in x for x in cell): material_json_data.append(json.loads("{" + "".join(cell) + "}"))