Added dynamic date to PGA script for mizuno. Tasks.

This commit is contained in:
Norm Rasmussen
2025-06-06 14:07:37 -04:00
parent 8f28915857
commit 64db473d49
2 changed files with 6 additions and 5 deletions

View File

@ -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,
)

View File

@ -51,4 +51,5 @@
- [X] Custom fields on user records - (CE Props) - available in analytics
- [X] Can SJ API add sign up fields progromatically
- [X] Can we make a custom page that has a custom title. Use this as a landing page instead of an email
- [ ] Book EMC meeting for Courtney and Alisha. - 05-09-2025
- [X] Book EMC meeting for Courtney and Alisha. - 05-09-2025