Initial commit
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
commit
6ec797a387
7 changed files with 198 additions and 0 deletions
14
extensions.py
Normal file
14
extensions.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue