Peach: Local-first video metadata scraper and media manager.
docs: 重问所属的注释只写现在是什么
longmeidao3b222c77b77d
diff --git a/scripts/resync_performer_agency.py b/scripts/resync_performer_agency.pyindex 13f75a505..d2f30ad78 100644--- a/scripts/resync_performer_agency.py+++ b/scripts/resync_performer_agency.py@@ -54,7 +54,8 @@ def targets(connection, agencies: list[str], only: list[str]) -> list[dict[str,"""要问的人:id、规范名、账本里现在写着的事务所,以及可以拿去检索的名字链。两个条件是并集而不是交集:`--agency LIGHT --only 北野未奈` 要问的是这一家加上- 这个人,而不是「这一家里叫这个名字的」——移籍时人已经不在原来那一家名下了。+ 这个人,而不是「这一家里叫这个名字的」——移籍走了的人不在这一家名下,按事务所+ 选不到她。检索必须带上别名。账本里 performer 的规范名是简体中文(`宫西光`),minnano-av只认日文写法(`宮西ひかる`),只拿规范名去问,14 位里 11 位落在「未取得」,diff --git a/tests/test_performer_agency_resync.py b/tests/test_performer_agency_resync.pyindex 07a307393..13e307e64 100644--- a/tests/test_performer_agency_resync.py+++ b/tests/test_performer_agency_resync.py@@ -145,7 +145,7 @@ class TargetTests(LedgerFixture):self.assertEqual(found[0]["current_agency"], "LIGHT")def test_a_named_outsider_joins_the_batch(self):- """移籍时人已经不在原来那一家名下,两个条件是并集才问得到她。"""+ """移籍走了的人不在这一家名下,两个条件是并集才问得到她。"""found = targets(self.con, ["LIGHT"], ["北野未奈"])self.assertEqual(len(found), 4)self.assertEqual(found[-1]["current_agency"], "")