Skip to content

Commit

Permalink
修复无法获取 attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
zzwtsy authored and Samueli924 committed Sep 1, 2023
1 parent aa8d5e2 commit c67e522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/chaoxing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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---")
Expand Down

0 comments on commit c67e522

Please sign in to comment.