Fix previous commit [faaabc]
Do not create an additional database access
This commit is contained in:
parent
faaabcef3a
commit
d6f3149a38
@ -532,7 +532,7 @@ class PeopleBaseModel(BaseModel):
|
||||
"""
|
||||
cached, value = self.get_cached_value(tag_handle, "TAG_NAME")
|
||||
if not cached:
|
||||
if self.db.get_tag_from_handle(tag_handle):
|
||||
if tag_handle:
|
||||
value = self.db.get_tag_from_handle(tag_handle).get_name()
|
||||
self.set_cached_value(tag_handle, "TAG_NAME", value)
|
||||
return value
|
||||
|
Loading…
Reference in New Issue
Block a user