mirror of
https://gitlab.com/cief-data/data-management.git
synced 2026-08-19 04:13:57 +00:00
Debug CRISP
This commit is contained in:
Binary file not shown.
@@ -30,6 +30,7 @@ def get_peoples_csv(website_id, client, path, filename):
|
||||
output_location = path + filename
|
||||
peoples_list_df = pd.DataFrame()
|
||||
peoples_data_df = pd.DataFrame()
|
||||
people_subscription_status_df = pd.DataFrame()
|
||||
loop_flag = True
|
||||
page_number = 1
|
||||
|
||||
@@ -42,6 +43,7 @@ def get_peoples_csv(website_id, client, path, filename):
|
||||
else:
|
||||
page_number += 1
|
||||
|
||||
|
||||
# Get marking by CustomerService Operator
|
||||
for people_id in peoples_list_df.people_id:
|
||||
people_data_json = client.website.get_people_data(website_id, people_id)
|
||||
@@ -56,7 +58,7 @@ def get_peoples_csv(website_id, client, path, filename):
|
||||
people_subscription_status_json = client.website.get_people_subscription_status(website_id, people_id)
|
||||
temp_df = general_function.json_normalize_to_df(people_subscription_status_json)
|
||||
temp_df['people_id'] = people_id
|
||||
people_subscription_status_df = pd.concat([temp_df,people_subscription_status_json], ignore_index=True)
|
||||
people_subscription_status_df = pd.concat([temp_df,people_subscription_status_df], ignore_index=True)
|
||||
|
||||
peoples_list_df = peoples_list_df.merge(people_subscription_status_df, on='people_id', how='left')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user