fix(scripts): remerge filmow tylko dla blizniaczych studiow
Some checks are pending
Backend tests / test (push) Waiting to run
Some checks are pending
Backend tests / test (push) Waiting to run
Warunek przepuszczal kazda pare z roznymi studiami, nie tylko z ta sama nazwa bez spacji. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f58ae3ea2d
commit
bf45339c97
1 changed files with 10 additions and 2 deletions
|
|
@ -22,7 +22,12 @@ from app.models.merge_candidate import MergeCandidate, MergeKind, MergeStatus
|
|||
from app.models.movie import Movie, MoviePerformer
|
||||
from app.resolve.movie_match import find_movie_candidates
|
||||
from app.resolve.movie_merge import MovieMergeError, merge_movies
|
||||
from app.resolve.movie_score import AUTO_THRESHOLD, _roman_to_arabic, score_movie_candidate
|
||||
from app.resolve.movie_score import (
|
||||
AUTO_THRESHOLD,
|
||||
_roman_to_arabic,
|
||||
_same_studio_name,
|
||||
score_movie_candidate,
|
||||
)
|
||||
|
||||
|
||||
def _affected_ids(session) -> list[uuid.UUID]:
|
||||
|
|
@ -100,7 +105,10 @@ def main() -> None:
|
|||
roman = _roman_to_arabic(c.title_normalized or "") != (c.title_normalized or "") or (
|
||||
_roman_to_arabic(m.title_normalized) != m.title_normalized
|
||||
)
|
||||
twin_studio = bool(c.studio_id and m.studio_id and c.studio_id != m.studio_id)
|
||||
twin_studio = bool(
|
||||
c.studio_id and m.studio_id and c.studio_id != m.studio_id
|
||||
and _same_studio_name(s, c.studio_id, m.studio_id)
|
||||
)
|
||||
if not (roman or twin_studio):
|
||||
continue # ta para wyglada dla oceny tak samo jak przy ingescie
|
||||
b = score_movie_candidate(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue