Added dynamic date to PGA script for mizuno. Tasks.
This commit is contained in:
@ -3,8 +3,9 @@ import pandas as pd
|
||||
from pathlib import Path
|
||||
import Apikeys
|
||||
import os
|
||||
from datetime import datetime
|
||||
|
||||
basefile = "/Users/normrasmussen/Downloads/multiple_learning_path_analysis.csv"
|
||||
basefile = "/Users/normrasmussen/Downloads/mizuno-may-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/"
|
||||
@ -13,8 +14,7 @@ headers = {
|
||||
"x-api-key": api_key,
|
||||
"content-type": "application/json",
|
||||
}
|
||||
yoyo = ""
|
||||
|
||||
THIS_MONTH = datetime.now().strftime('%B%Y')
|
||||
|
||||
def load_file(basefile):
|
||||
dict_list = []
|
||||
@ -52,7 +52,7 @@ def load_file(basefile):
|
||||
completions = completions[completions["userid"] != "0"]
|
||||
# completions = completions.iloc[:, 0:]
|
||||
completions.to_csv(
|
||||
"/Users/normrasmussen/Downloads/Mizuno-LP-Mar25-with-PGAID.csv",
|
||||
f"/Users/normrasmussen/Downloads/Mizuno-LP-{THIS_MONTH}25-with-PGAID.csv",
|
||||
index=False,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user