diff --git a/seahub/repo_metadata/apis.py b/seahub/repo_metadata/apis.py index 72ad8deb11..bcec3f8668 100644 --- a/seahub/repo_metadata/apis.py +++ b/seahub/repo_metadata/apis.py @@ -1790,9 +1790,6 @@ def post(self, request, repo_id): return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg) row_ids = resp.get('row_ids', []) - if not row_ids: - return Response({ 'tags': tags }) - row_ids_str = ', '.join([f'"{id}"' for id in row_ids]) sql = f'SELECT * FROM {TAGS_TABLE.name} WHERE `{TAGS_TABLE.columns.id.name}` in ({row_ids_str})' try: