Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
沈秋雨
/
import_hk_songs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
daf60439
...
daf604390da4eb70632beabdac451d9817f7381e
authored
2026-07-20 10:03:28 +0800
by
沈秋雨
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(l2_review): 添加“待确认”状态支持
1 parent
7d5fed77
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
l2_review_dashboard.html
serve_l2_dashboard.py
l2_review_dashboard.html
View file @
daf6043
...
...
@@ -631,6 +631,7 @@
<label
for=
"decisionFilter"
>
类型
</label>
<select
id=
"decisionFilter"
>
<option
value=
"pending"
selected
>
待审核
</option>
<option
value=
"unsure"
>
待确认
</option>
<option
value=
""
>
全部
</option>
<option
value=
"l1_hit"
>
L1 命中
</option>
<option
value=
"conflict"
>
L1/L2 冲突
</option>
...
...
serve_l2_dashboard.py
View file @
daf6043
...
...
@@ -361,13 +361,16 @@ def _staging_groups_response(
where_clauses
.
append
(
"s.biz_review_status IN ('approved_import', 'rejected_duplicate', 'deleted')"
)
where_clauses
.
append
(
"s.staging_status = 'imported'"
)
elif
decision
==
'pending'
:
where_clauses
.
append
(
"(s.biz_review_status IS NULL OR s.biz_review_status
IN ('pending', 'unsure')
)"
)
where_clauses
.
append
(
"(s.biz_review_status IS NULL OR s.biz_review_status
= 'pending'
)"
)
where_clauses
.
append
(
"s.dedup_action = 'review'"
)
where_clauses
.
append
(
"s.staging_status <> 'imported'"
)
where_clauses
.
append
(
"(s.review_claim_expires_at IS NULL OR s.review_claim_expires_at <= NOW() OR s.review_claim_token =
%
s)"
)
params
.
append
(
client_token
)
elif
decision
==
'unsure'
:
where_clauses
.
append
(
"s.biz_review_status = 'unsure'"
)
where_clauses
.
append
(
"s.staging_status <> 'imported'"
)
# 兼容旧的 dedup_action 筛选
elif
decision
and
decision
in
(
'merge'
,
'review'
):
where_clauses
.
append
(
"s.dedup_action =
%
s"
)
...
...
Please
register
or
sign in
to post a comment