mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
AY-5539 - refactor argument name
This commit is contained in:
parent
dd02631786
commit
cbc0516475
1 changed files with 4 additions and 4 deletions
|
|
@ -1898,16 +1898,16 @@ class PublisherController(BasePublisherController):
|
|||
re.compile("|".join(allowed_creator_labels)))
|
||||
return allowed_creator_labels
|
||||
|
||||
def _is_label_allowed(self, label, allowed_label_regexes):
|
||||
def _is_label_allowed(self, label, allowed_labels_regex):
|
||||
"""Implement regex support for allowed labels.
|
||||
|
||||
Args:
|
||||
label (str): Label of creator - shown in Publisher
|
||||
allowed_label_regexes (str): compiled regular expression
|
||||
allowed_labels_regex (re.Pattern): compiled regular expression
|
||||
"""
|
||||
if not allowed_label_regexes:
|
||||
if not allowed_labels_regex:
|
||||
return True
|
||||
return bool(allowed_label_regexes.match(label))
|
||||
return bool(allowed_labels_regex.match(label))
|
||||
|
||||
def _reset_instances(self):
|
||||
"""Reset create instances."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue