Skip to content

Commit

Permalink
refactor: cr调整
Browse files Browse the repository at this point in the history
  • Loading branch information
neronkl committed Dec 8, 2023
1 parent e85ac62 commit 2c8ed7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bk-user/bkuser/apis/web/data_source/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ def get_data_source_name(self, obj: DataSourceSyncTask) -> str:
def get_start_at(self, obj: DataSourceSyncTask) -> str:
return obj.start_at_display

def get_operator(self, obj: DataSourceSyncTask):
def get_operator(self, obj: DataSourceSyncTask) -> str:
if not obj.operator:
return ""
operator = self.context["tenant_manager_map"][obj.operator].data_source_user
expression_factors = {
"username": operator.username,
Expand Down

0 comments on commit 2c8ed7d

Please sign in to comment.