Update custom_filters.py

This commit is contained in:
_run 2022-02-23 13:08:02 +05:00 committed by GitHub
parent 102fe3a8fb
commit b960a9e574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -282,7 +282,10 @@ class StateFilter(AdvancedCustomFilter):
if text == '*': return True
if isinstance(text, list):
new_text = [i.name for i in text]
new_text = []
for i in text:
if isclass(i): i = i.name
new_text.append(i)
text = new_text
elif isinstance(text, object):
text = text.name