后台去重数据新增国家
This commit is contained in:
@@ -2929,6 +2929,7 @@ def _format_dedupe_total_data_item(item):
|
||||
return {
|
||||
'id': item.get('id'),
|
||||
'data_value': item.get('dataValue') or '',
|
||||
'country': item.get('country') or '',
|
||||
'group_id': item.get('groupId'),
|
||||
'group_name': item.get('groupName') or '',
|
||||
'uploader_user_id': item.get('uploaderUserId'),
|
||||
@@ -2948,6 +2949,7 @@ def list_dedupe_total_data():
|
||||
keyword = (request.args.get('keyword') or '').strip()
|
||||
username = (request.args.get('username') or '').strip()
|
||||
group_id = _parse_positive_group_id(request.args.get('group_id') or request.args.get('groupId'))
|
||||
country = (request.args.get('country') or '').strip()
|
||||
start_date = (request.args.get('start_date') or request.args.get('startDate') or '').strip()
|
||||
end_date = (request.args.get('end_date') or request.args.get('endDate') or '').strip()
|
||||
params = {
|
||||
@@ -2957,6 +2959,8 @@ def list_dedupe_total_data():
|
||||
'username': username,
|
||||
'operatorId': current_row.get('id'),
|
||||
}
|
||||
if country:
|
||||
params['country'] = country
|
||||
if start_date:
|
||||
params['startDate'] = start_date
|
||||
if end_date:
|
||||
@@ -2993,10 +2997,13 @@ def export_dedupe_total_data():
|
||||
return denied
|
||||
params = {'operatorId': current_row.get('id')}
|
||||
username = (request.args.get('username') or '').strip()
|
||||
country = (request.args.get('country') or '').strip()
|
||||
start_date = (request.args.get('start_date') or request.args.get('startDate') or '').strip()
|
||||
end_date = (request.args.get('end_date') or request.args.get('endDate') or '').strip()
|
||||
if username:
|
||||
params['username'] = username
|
||||
if country:
|
||||
params['country'] = country
|
||||
if start_date:
|
||||
params['startDate'] = start_date
|
||||
if end_date:
|
||||
|
||||
Reference in New Issue
Block a user