Skip to content

Commit

Permalink
feat: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
杨国璇 authored and 杨国璇 committed Jan 2, 2025
1 parent cf9b406 commit 071d611
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repo_metadata/view_data_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,9 @@ def get_tags_names_str(self):
if not isinstance(self.filter_term, list):
return ''
filter_term = [self._get_tag_name_by_id(tag_id) for tag_id in self.filter_term]
filter_term = [tag_name for tag_name in filter_term if tag_name]
if not filter_term:
return ''
return ', '.join([f'"{tag_name}"' for tag_name in filter_term])

def op_has_any_of(self):
Expand Down

0 comments on commit 071d611

Please sign in to comment.