Mostly Bolt notes. Some small script changes.

This commit is contained in:
Norm Rasmussen
2023-07-05 15:38:04 -04:00
parent 94dc876345
commit 407cdafa47
4 changed files with 45 additions and 2 deletions

View File

@ -4,7 +4,7 @@ from pathlib import Path
import Apikeys
import os
basefile = "/Users/normrasmussen/Downloads/Mizuno_May.csv"
basefile = "/Users/normrasmussen/Downloads/Mizuno June 2023 Completions.csv"
api_key = Apikeys.mizuno
uuid_url = "https://api.northpass.com/v2/people?filter[email][eq]="
prop_url = "https://api.northpass.com/v2/properties/people/"
@ -35,7 +35,8 @@ def load_file(basefile):
url2 = prop_url + f"{uuid}"
response = requests.get(url2, headers=headers)
data = response.json()
pgaid = data["data"]["attributes"]["properties"]["account_number"]
pgaid = (data["data"]
["attributes"]["properties"]["account_number"])
row_dict["pgaid"] = pgaid
dict_list.append(row_dict)
print("No errors! Passing along the dictionary!")