Bugs y restaurar mastodon a su estado original, que se tocó sin querer

This commit is contained in:
Jesús Pavón Abián
2026-02-05 09:31:50 +01:00
parent de1c9ee744
commit abf4cb0df1
5 changed files with 39 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ class EditTemplate(object):
self.template: str = template
def validate_template(self, template: str) -> bool:
used_variables: List[str] = re.findall(r"\$\w+", template)
used_variables: List[str] = re.findall("\$\w+", template)
validated: bool = True
for var in used_variables:
if var[1:] not in self.variables:
@@ -39,4 +39,4 @@ class EditTemplate(object):
else:
return dialog.template.GetValue()
else:
return ""
return ""