Skip to content

Commit

Permalink
feat: 提供 Agent 包管理后台基础接口 (closed #1683)
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 23027
  • Loading branch information
ping15 committed Nov 6, 2024
1 parent 27c955f commit f33cc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/node_man/handlers/gse_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def _init_project_version__tags_map(self):
tags: QuerySet = self.get_tag_objs(project).values("name", "description", "target_version")

for tag in tags:
tag["description"] = _(tag["description"])
cache_key = self.get_tags_cache_key(project, tag.pop("target_version"))
self.cache[self.PROJECT_VERSION__TAGS_MAP][cache_key].append(tag)

Expand Down Expand Up @@ -175,7 +176,6 @@ def split_tags_into_builtin_and_custom(
built_in_tags, custom_tags = [], []
for tag in tags:
if tag["name"] in BUILT_IN_TAG_NAMES:
tag["description"] = _(tag["description"])
built_in_tags.append(tag)
else:
custom_tags.append(tag)
Expand Down

0 comments on commit f33cc5f

Please sign in to comment.