Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Python/populate_db/6-add_pcti_activities_and_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def generate_random_string(length):
# adding 6 classes
class_description_names = ["Leopards", "Eagles", "Dolphins", "Bears", "Bees", "Elephants"]
class_names = ["2026 - Empower - Group 1", "2026 - Empower - Group 2", "2026 - Empower - Group 3", "2026 - Empower - Group 4", "2026 - Empower - Group 5", "2026 - Empower - Group 6"]
skills = ["CREATIVITY AND INNOVATION", "INFORMATION LITERACY", "FLEXIBILITY AND ADAPTABILITY"]
tasks = ["Introduce email account", "Introduce basic security features", "Setting up email", "General"]
org_ids = []

count = 0
Expand Down Expand Up @@ -192,8 +192,8 @@ def generate_random_string(length):
print(addPctiNotesResponse.json())

# adding skills child activities
for skill in skills:
add_skill_mutation = add_children_activity_template.format(activity_name=skill, activity_description=skill, parent_activities=project_activity_ids, avinya_type_id=80)
for task in tasks:
add_skill_mutation = add_children_activity_template.format(activity_name=task, activity_description=task, parent_activities=project_activity_ids, avinya_type_id=80)
addSkillActivityresponse = requests.post(url, json={"query": add_skill_mutation})
print(addSkillActivityresponse.json())

Expand Down