From c67e522c01fc74073712cecf3b683089d21b9674 Mon Sep 17 00:00:00 2001 From: zzwtsy <58852496+zzwtsy@users.noreply.github.com> Date: Tue, 8 Aug 2023 23:46:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=20attachments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/chaoxing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chaoxing.py b/api/chaoxing.py index eba05d5..facdf98 100644 --- a/api/chaoxing.py +++ b/api/chaoxing.py @@ -186,7 +186,7 @@ def get_knowledge(self, clazzid, courseid, knowledgeid, num): def get_attachments(self, text): if res := re.search( - r'window\.AttachmentSetting =({\"hiddenConfig\":false,\"attachments\":.*})', + r'window\.AttachmentSetting =({.*"hiddenConfig":false,.*"attachments":.*})', text): attachments = json.loads(res[1]) self.logger.debug("---attachments info begin---")