Skip to content

Commit fdf2ef6

Browse files
committed
Fix indexing for GitHub license, owner, and status in package pages
1 parent 5a6ebde commit fdf2ef6

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

build_web_pages/build_packages_long_page.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def main(package_file_path, functions_file_path, html_file_path):
4141
"github_link": row[5],
4242
"github_last_update": row[6],
4343
"github_version": row[7],
44-
"github_license": row[8],
45-
"github_owner": row[9],
46-
"status": row[10]
44+
"github_license": row[9],
45+
"github_owner": row[10],
46+
"status": row[11]
4747
}
4848

4949
# Parse the functions.txt file

build_web_pages/build_packages_summary_page.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,23 +95,23 @@ def main(csv_file_path, html_file_path, functions_file_path):
9595
this_row += '<td>' + row[4] + '</td>' # CRAN license
9696
this_row += '<td>' + row[6] + '</td>' # GH last update
9797
this_row += '<td>' + row[7] + '</td>' # GH version
98-
this_row += '<td>' + row[8] + '</td>' # GH license
99-
this_row += '<td class="left">' + row[9] + '</td>' # GH owner
98+
this_row += '<td>' + row[9] + '</td>' # GH license
99+
this_row += '<td class="left">' + row[10] + '</td>' # GH owner
100100

101101
# Group rows by status and add put a row number in
102-
if row[10].strip() == 'production':
102+
if row[11].strip() == 'production':
103103
production_rows += '<tr>'
104104
production_rows += '<td>' + str(production_rows_count) + '</td>' # Row number
105105
production_rows += this_row
106106
production_rows += '</tr>'
107107
production_rows_count += 1
108-
elif row[10].strip() == 'development':
108+
elif row[11].strip() == 'development':
109109
development_rows += '<tr>'
110110
development_rows += '<td>' + str(development_rows_count) + '</td>'
111111
development_rows += this_row
112112
development_rows += '</tr>'
113113
development_rows_count += 1
114-
elif row[10].strip() == 'retired':
114+
elif row[11].strip() == 'retired':
115115
retired_rows += '<tr>'
116116
retired_rows += '<td>' + str(retired_rows_count) + '</td>'
117117
retired_rows += this_row

0 commit comments

Comments
 (0)