From 54f21977d21089b5594e9fdbd039a8cf434a5316 Mon Sep 17 00:00:00 2001 From: Stuart Griffiths Date: Sun, 23 Oct 2022 14:43:54 +0100 Subject: [PATCH] removed text from due reports following feedback. --- appointments_training_reports.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/appointments_training_reports.py b/appointments_training_reports.py index 8ef4468..29dde5b 100644 --- a/appointments_training_reports.py +++ b/appointments_training_reports.py @@ -508,7 +508,7 @@ def training_report(): if safety_status != True and safeguarding_status != True and firstaid_status == True and role_training == True and firstaid_required == True: #write only with the first aid status if input_data[line_num][40] == '': - late_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], 'Up To Date', 'Up To Date', 'Never Completed']) + late_manprintdatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], 'Up To Date', 'Up To Date', 'Never Completed']) else: late_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], 'Up To Date', 'Up To Date', input_data[line_num][41]]) # x2 combo only @@ -548,23 +548,23 @@ def training_report(): #single one only if safety_due_status == True and safeguarding_due_status != True and firstaid_due_status != True and role_training == True: #write only with the safety status - due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], input_data[line_num][37], "Up To Date", "Up To Date"]) + due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], input_data[line_num][37], "", ""]) if safety_due_status != True and safeguarding_due_status == True and firstaid_due_status != True and role_training == True: #write only with the safeguarding status - due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], 'Up To Date', input_data[line_num][39], "Up To Date"]) + due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], '', input_data[line_num][39], ""]) if safety_due_status != True and safeguarding_due_status != True and firstaid_due_status == True and role_training == True: #write only with the first aid status - due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], 'Up To Date', 'Up To Date', input_data[line_num][41]]) + due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], '', '', input_data[line_num][41]]) # x2 combo only if safety_due_status == True and safeguarding_due_status == True and firstaid_due_status != True and role_training == True: #write safety and safeguarding status - due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], input_data[line_num][37], input_data[line_num][39], "Up To Date"]) + due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], input_data[line_num][37], input_data[line_num][39], ""]) if safety_due_status == True and safeguarding_due_status != True and firstaid_due_status == True and role_training == True: #write safety and first aid status - due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], input_data[line_num][37] , 'Up To Date', input_data[line_num][41]]) + due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], input_data[line_num][37] , '', input_data[line_num][41]]) if safety_due_status != True and safeguarding_due_status == True and firstaid_due_status == True and role_training == True: #write safeguarding and first aid status - due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], 'Up To Date', input_data[line_num][39], input_data[line_num][41]]) + due_mandatory.writerow([input_data[line_num][0], input_data[line_num][3], input_data[line_num][2], input_data[line_num][4], input_data[line_num][5], input_data[line_num][8], input_data[line_num][13], input_data[line_num][21], input_data[line_num][19], '', input_data[line_num][39], input_data[line_num][41]]) # all 3 if safety_due_status == True and safeguarding_due_status == True and firstaid_due_status == True and role_training == True: #write safety, safeguarding and first aid status @@ -627,7 +627,7 @@ def training_report(): statistics_file.write('Leaders who are late with Safety module: ' + str(len(spitfire_safety_missing_list))+'\n') statistics_file.write('Leaders who need to complete the Safety module within ' + str(due_months) + ' months: ' + str(len(spitfire_safety_due_list))+'\n') statistics_file.write('Leaders who are late with Safeguarding module: ' + str(len(spitfire_safeguarding_missing_list))+'\n') - statistics_file.write('Leaders who need to complete the Safeguarding module within ' + str(due_months) + ' months: ' + str(len(spitfire_safeguarding_due_list))+'\n') + statistics_file.write('Lprinteaders who need to complete the Safeguarding module within ' + str(due_months) + ' months: ' + str(len(spitfire_safeguarding_due_list))+'\n') statistics_file.write('Leaders who are late with First Aid module: ' + str(len(spitfire_firstaid_missing_list))+'\n') statistics_file.write('Leaders who need to complete the First Aid module within ' + str(due_months) + ' months: ' + str(len(spitfire_firstaid_due_list))+'\n') statistics_file.write('\n')