Skip to content

Commit

Permalink
Merge pull request #457 from UnrealMultiple/riips
Browse files Browse the repository at this point in the history
fix(scripts): ForumHelper.py and GiteeSync.py minor fixes
  • Loading branch information
LaoSparrow authored Sep 7, 2024
2 parents cb3ae11 + d796e1a commit e031015
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: 插件构建发布
on:
push:
branches:
- "**"
- '**'
tags-ignore:
- "V1.0.0.0"
- 'V1.0.0.0'
pull_request:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion scripts/ForumHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"text": md
})).text

def login(session: Session, url: str):
def login(session: rq.Session, url: str):
resp = session.get(url)
soup = BeautifulSoup(resp.text, 'html.parser')
data_csrf = soup.html['data-csrf']
Expand Down
2 changes: 1 addition & 1 deletion scripts/GiteeSync.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'Authorization': f'token {gitee_token}'
}
files = {
'file': open('bin/Plugins.zip', 'rb')
'file': open('out/Plugins.zip', 'rb')
}
attachments = requests.get(f"https://gitee.com/api/v5/repos/{owner}/{repo}/releases/{release_id}/attach_files?&page=1&per_page=100&direction=asc",headers=headers).json()
for attachment in attachments:
Expand Down

0 comments on commit e031015

Please sign in to comment.