Skip to content

Commit

Permalink
Merge pull request #534 from shresthasurav/patch1
Browse files Browse the repository at this point in the history
fix typos in scripts
  • Loading branch information
erjosito authored Oct 31, 2023
2 parents b445e62 + 3b7ab5e commit cb4e3dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions scripts/create_master_checklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def update_excel_file(input_excel_file, output_excel_file, checklist_data):

# Display summary
if args.verbose:
print("DEBUG:", str(row_counter - values_row1), "statuses addedd to Excel spreadsheet")
print("DEBUG:", str(row_counter - values_row1), "statuses added to Excel spreadsheet")

# Update severities
row_counter = values_row1
Expand All @@ -389,7 +389,7 @@ def update_excel_file(input_excel_file, output_excel_file, checklist_data):

# Display summary
if args.verbose:
print("DEBUG:", str(row_counter - values_row1), "severities addedd to Excel spreadsheet")
print("DEBUG:", str(row_counter - values_row1), "severities added to Excel spreadsheet")

# Data validation
# UserWarning: Data Validation extension is not supported and will be removed!!!!
Expand Down
10 changes: 5 additions & 5 deletions scripts/update_excel_openpyxl.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def update_excel_file(input_excel_file, output_excel_file, checklist_data):
# Display summary
if args.verbose:
number_of_checks = row_counter - row1
print("DEBUG:", str(number_of_checks), "checks addedd to Excel spreadsheet")
print("DEBUG:", str(number_of_checks), "checks added to Excel spreadsheet")

# Get worksheet
try:
Expand All @@ -192,7 +192,7 @@ def update_excel_file(input_excel_file, output_excel_file, checklist_data):

# Display summary
if args.verbose:
print("DEBUG:", str(row_counter - values_row1), "categories addedd to Excel spreadsheet")
print("DEBUG:", str(row_counter - values_row1), "categories added to Excel spreadsheet")

# Update status
row_counter = values_row1
Expand All @@ -205,7 +205,7 @@ def update_excel_file(input_excel_file, output_excel_file, checklist_data):

# Display summary
if args.verbose:
print("DEBUG:", str(row_counter - values_row1), "statuses addedd to Excel spreadsheet")
print("DEBUG:", str(row_counter - values_row1), "statuses added to Excel spreadsheet")

# Update severities
row_counter = values_row1
Expand All @@ -216,7 +216,7 @@ def update_excel_file(input_excel_file, output_excel_file, checklist_data):

# Display summary
if args.verbose:
print("DEBUG:", str(row_counter - values_row1), "severities addedd to Excel spreadsheet")
print("DEBUG:", str(row_counter - values_row1), "severities added to Excel spreadsheet")

# Data validation
# dv = DataValidation(type="list", formula1='=Values!$B$2:$B$6', allow_blank=True, showDropDown=True)
Expand Down Expand Up @@ -249,7 +249,7 @@ def update_excel_file(input_excel_file, output_excel_file, checklist_data):
checklist_file_list = list(set(checklist_file_list))
if args.verbose:
print("DEBUG: new checklist file list:", str(checklist_file_list))
# If --find-all paramater was supplied, find all the languages for the checklist
# If --find-all parameter was supplied, find all the languages for the checklist
if args.find_all:
new_file_list = []
for checklist_file in checklist_file_list:
Expand Down
4 changes: 2 additions & 2 deletions scripts/workbook_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def generate_workbook(output_file, checklist_data):
tab_percent_tile_index = tab_item_index(workbook['items'][tab_id], 'TabPercentTile')
if args.verbose:
print("DEBUG: Adjusting tile (index in tab {3}) to use the percent parameter for Tab{0} {1} with index {2}...".format(tab_dict[tab], tab, tab_id, tab_percent_tile_index))
workbook['items'][tab_id]['content']['items'][tab_percent_tile_index]['content']['query'] = "{\"version\":\"1.0.0\",\"content\":\"{\\\"Column1\\\": \\\"{Tab" + str(tab_dict[tab]) + "Percent}\\\", \\\"Column2\\\": \\\"Percent of succesful checks\\\"}\",\"transformers\":null}"
workbook['items'][tab_id]['content']['items'][tab_percent_tile_index]['content']['query'] = "{\"version\":\"1.0.0\",\"content\":\"{\\\"Column1\\\": \\\"{Tab" + str(tab_dict[tab]) + "Percent}\\\", \\\"Column2\\\": \\\"Percent of successful checks\\\"}\",\"transformers\":null}"
# After going through the tabs, if we still need to add the total parameters to the workbook header:
if args.counters:
# Total
Expand Down Expand Up @@ -669,7 +669,7 @@ def get_output_file(checklist_file_or_url, is_file=True):
# First thing of all, load the building blocks
load_building_blocks()
if args.verbose:
print ("DEBUG: building blocks variables intialized:")
print ("DEBUG: building blocks variables initialized:")
print ("DEBUG: - Workbook: {0}".format(str(block_workbook)))
print ("DEBUG: - Number of items: {0}".format(str(len(block_workbook['items']))))
print ("DEBUG: - Link: {0}".format(str(block_link)))
Expand Down

0 comments on commit cb4e3dd

Please sign in to comment.