refac
This commit is contained in:
@@ -107,8 +107,8 @@ async def get_model_tags(user=Depends(get_verified_user)):
|
||||
|
||||
tags_set = set()
|
||||
for model in models:
|
||||
if model.meta and model.meta.tags:
|
||||
for tag in model.meta.tags:
|
||||
if model.meta and model.meta.get("tags"):
|
||||
for tag in model.meta.get("tags"):
|
||||
tags_set.add((tag.get("name")))
|
||||
|
||||
tags = [tag for tag in tags_set]
|
||||
|
||||
Reference in New Issue
Block a user