From 0b71029b2a541a0d5c835e01cb8169e62d0c7c6d Mon Sep 17 00:00:00 2001 From: Zaeema Nashath Date: Mon, 27 Feb 2023 17:51:54 +0530 Subject: [PATCH] Added tasks to pcti activities --- Python/populate_db/6-add_pcti_activities_and_notes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Python/populate_db/6-add_pcti_activities_and_notes.py b/Python/populate_db/6-add_pcti_activities_and_notes.py index 60bd77d..99448bf 100644 --- a/Python/populate_db/6-add_pcti_activities_and_notes.py +++ b/Python/populate_db/6-add_pcti_activities_and_notes.py @@ -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 @@ -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())