14 lines
277 B
Python
14 lines
277 B
Python
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
|