From 747ab0a0b5a22e70ea327f401e351a63456fff23 Mon Sep 17 00:00:00 2001 From: Nelson Jovel Date: Sat, 3 Feb 2024 20:31:26 -0800 Subject: [PATCH] chore: Renames output files to include parts for the forms. Finds the number of the form in the filename and change it to a letter equivalent, e.g Part 1 becomes Part A. Only supports 26 parts. If it's already in then correct form (Part A), it makes no alterations. --- app/services/dashboard/cleaner.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/services/dashboard/cleaner.rb b/app/services/dashboard/cleaner.rb index 0313a42..22a359a 100644 --- a/app/services/dashboard/cleaner.rb +++ b/app/services/dashboard/cleaner.rb @@ -42,7 +42,15 @@ module Dashboard row.school.name end.to_set - part = filepath&.match(/[\b\s_.]+(part|form)[\W*_](?