You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
321 B
Python
17 lines
321 B
Python
1 year ago
|
def makeKeyWordList(tags):
|
||
|
catPaths = {
|
||
|
'digitalart/paintings/other': ['Digital Art', 'Paintings']
|
||
|
}
|
||
|
output = [
|
||
|
tags.da_category,
|
||
|
tags.license,
|
||
|
tags.author.username
|
||
|
]
|
||
|
|
||
|
if tags.is_mature:
|
||
|
output.append('is_mature')
|
||
|
|
||
|
|
||
|
for item in .get(tags.category_path,[]):
|
||
|
output.append(item)
|
||
|
|