Merge pull request #1696 from GHLuckM4n/master

Fix namesub from arg
This commit is contained in:
Anas Tayyar 2024-03-16 01:07:27 +02:00 committed by GitHub
commit 13e67f9520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -156,7 +156,8 @@ class TaskConfig:
async def beforeStart(self):
self.nameSub = (
self.userDict.get("name_sub", False) or config_dict["NAME_SUBSTITUTE"]
self.nameSub
or self.userDict.get("name_sub", False) or config_dict["NAME_SUBSTITUTE"]
if "name_sub" not in self.userDict
else ""
)