Skip to content

2.10.3 上锁题目过滤问题 #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/update_version.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
name: debug
name: update_version

on:
workflow_dispatch:
inputs:
tag:
description: "test Tag"
required: true
description: "版本号"
type: string
change:
description: "提交内容"
type: string

jobs:
linux:
jobA:
name: Linux
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.event.inputs.tag != '' && github.event.inputs.change != ''
steps:
- uses: actions/checkout@v2
- run: |
ls
sed -i "s/\"version\":.*$/\"version\": \"${{ github.event.inputs.tag }}\",/" package.json
git config user.name github-actions
git config user.email [email protected]
echo -e "## version ${{ github.event.inputs.tag }}\n\n- ${{ github.event.inputs.change }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
git config user.name ccagml
git config user.email [email protected]
git add .
git commit -m "update version"
git commit -m ${{ github.event.inputs.change }}
git push
5 changes: 4 additions & 1 deletion src/controller/TreeViewController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,10 @@ class TreeViewController implements Disposable {
const showLockedFlag: boolean = isShowLocked();
const useEndpointTranslation: boolean = isUseEndpointTranslation();
const result: string = await executeService.getAllProblems(showLockedFlag, useEndpointTranslation);
const all_problem_info = JSON.parse(result);
let all_problem_info = JSON.parse(result);
if (!showLockedFlag) {
all_problem_info = all_problem_info.filter((p) => !p.locked);
}
const problems: IProblem[] = [];
const AllScoreData = treeDataService.getScoreData();
// 增加直接在线获取分数数据
Expand Down