Initial commit

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2025-03-02 00:57:07 +03:00
commit 6ec797a387
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2
7 changed files with 198 additions and 0 deletions

14
extensions.py Normal file
View file

@ -0,0 +1,14 @@
import re
def humanize_tags_from_json(value, default):
if value != "":
output = str()
tags = value.split()
for t in tags:
output += f"{re.sub('_\\(.*', '', t)}, "
output = output[:-2]
return output
return default