mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 12:08:21 +08:00
Fix: shortest selection in commission filter not working
This commit is contained in:
@@ -41,8 +41,9 @@ class Filter:
|
||||
out = []
|
||||
for raw, filter in zip(self.filter_raw, self.filter):
|
||||
if self.is_preset(raw):
|
||||
raw = raw.lower()
|
||||
if raw not in out:
|
||||
out.append(raw.lower())
|
||||
out.append(raw)
|
||||
else:
|
||||
for index, obj in enumerate(objs):
|
||||
if self.apply_filter_to_obj(obj=obj, filter=filter) and obj not in out:
|
||||
|
||||
@@ -19,7 +19,7 @@ COMMISSION_FILTER = Filter(
|
||||
'(\d\d?.\d\d?|\d\d?)?'
|
||||
),
|
||||
attr=('category_str', 'genre_str', 'duration_hm', 'duration_hour'),
|
||||
preset=('shortest')
|
||||
preset=('shortest',)
|
||||
)
|
||||
SHORTEST_FILTER = """
|
||||
0:20 > 0:30
|
||||
|
||||
Reference in New Issue
Block a user