Skip to content

Commit

Permalink
feat: metadata map view
Browse files Browse the repository at this point in the history
  • Loading branch information
杨国璇 authored and 杨国璇 committed Jan 10, 2025
1 parent 31558c9 commit c5966cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions repo_metadata/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ class DurationFormatsType(object):
class ViewType(object):
TABLE = 'table'
GALLERY = 'gallery'
MAP = 'map'
KANBAN = 'kanban'


METADATA_OP_LIMIT = 1000
Expand Down
2 changes: 1 addition & 1 deletion repo_metadata/view_data_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ def _basic_filters_sql(self):
continue
filters.append(filter_item)
elif column_key == PrivatePropertyKeys.FILE_TYPE:
if view_type == ViewType.GALLERY:
if view_type == ViewType.GALLERY or view_type == ViewType.MAP:
filter_term = filter_item.get('filter_term', 'picture')
if filter_term == 'picture':
filter_item['filter_term'] = '_picture'
Expand Down

0 comments on commit c5966cc

Please sign in to comment.