Skip to content

Commit

Permalink
Fix validator column overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrappyCocco authored May 16, 2024
1 parent d3f147d commit f4cf0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validator/CSVValidator.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,15 @@ def process_file(self, filename: str):
" because in ignore list!\n\n")
else:
# Check if we want to print a remainder to update the lines
if ("PLEASE UPDATE" in str(row[2])) or ((str(row[5])).strip()):
if ("PLEASE UPDATE" in str(row[2])) or "Required" in str(row[5]) or ((str(row[5])).strip()):
warnings_found += 1
file_manager.write_line_separator(str(line_counter))
file_manager.write_string_to_file(
"Warning [Line needs update]: " +
"This line may be marked with [PLEASE UPDATE]. " +
"Check if you need to update it \n" +
"Description: " + str(row[2]) + "\n" +
"Please Update: " + str(row[6]) + "\n" +
"Please Update: " + str(row[5]) + "\n" +
"Original: " + str(row[3]) + "\n" +
"Translated: " + str(row[4]) + "\n\n")
# Check deprecation first
Expand Down

0 comments on commit f4cf0ef

Please sign in to comment.