|
@@ -134,6 +134,7 @@ class ConfigDetail(BaseModel):
|
|
create_time: str = Field(..., description="创建时间")
|
|
create_time: str = Field(..., description="创建时间")
|
|
operator: str = Field(..., description="创建人")
|
|
operator: str = Field(..., description="创建人")
|
|
number: int = Field(..., description="序号")
|
|
number: int = Field(..., description="序号")
|
|
|
|
+ user_id: str = Field(..., description="用户id")
|
|
|
|
|
|
|
|
|
|
class TaskResponse(BaseResponse):
|
|
class TaskResponse(BaseResponse):
|
|
@@ -277,7 +278,8 @@ def get_script_config_lst(item: ScriptConfigLst):
|
|
|
|
|
|
g_df = org_df.groupby('config_id').apply(lambda x: pd.Series({'query_word_lst': list(x['query_word'].unique()),
|
|
g_df = org_df.groupby('config_id').apply(lambda x: pd.Series({'query_word_lst': list(x['query_word'].unique()),
|
|
'operator': x['operator'].min(),
|
|
'operator': x['operator'].min(),
|
|
- 'create_time': str(x['start_time'].min())}))
|
|
|
|
|
|
+ 'create_time': str(x['start_time'].min()),
|
|
|
|
+ 'user_id': x['user_id'].min()}))
|
|
g_df.reset_index(drop=False, inplace=True)
|
|
g_df.reset_index(drop=False, inplace=True)
|
|
g_df.sort_values(by='create_time', ascending=False, inplace=True)
|
|
g_df.sort_values(by='create_time', ascending=False, inplace=True)
|
|
g_df['number'] = list(range(1, len(g_df) + 1))
|
|
g_df['number'] = list(range(1, len(g_df) + 1))
|