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
|
from pathlib import Path
|
||||||
import Apikeys
|
import Apikeys
|
||||||
import os
|
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
|
api_key = Apikeys.MIZUNO
|
||||||
uuid_url = "https://api.northpass.com/v2/people?filter[email][eq]="
|
uuid_url = "https://api.northpass.com/v2/people?filter[email][eq]="
|
||||||
prop_url = "https://api.northpass.com/v2/properties/people/"
|
prop_url = "https://api.northpass.com/v2/properties/people/"
|
||||||
@ -13,8 +14,7 @@ headers = {
|
|||||||
"x-api-key": api_key,
|
"x-api-key": api_key,
|
||||||
"content-type": "application/json",
|
"content-type": "application/json",
|
||||||
}
|
}
|
||||||
yoyo = ""
|
THIS_MONTH = datetime.now().strftime('%B%Y')
|
||||||
|
|
||||||
|
|
||||||
def load_file(basefile):
|
def load_file(basefile):
|
||||||
dict_list = []
|
dict_list = []
|
||||||
@ -52,7 +52,7 @@ def load_file(basefile):
|
|||||||
completions = completions[completions["userid"] != "0"]
|
completions = completions[completions["userid"] != "0"]
|
||||||
# completions = completions.iloc[:, 0:]
|
# completions = completions.iloc[:, 0:]
|
||||||
completions.to_csv(
|
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,
|
index=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
3
Tasks.md
3
Tasks.md
@ -51,4 +51,5 @@
|
|||||||
- [X] Custom fields on user records - (CE Props) - available in analytics
|
- [X] Custom fields on user records - (CE Props) - available in analytics
|
||||||
- [X] Can SJ API add sign up fields progromatically
|
- [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
|
- [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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user