Skip to content

Commit 9303ce4

Browse files
committed
linting
1 parent eb7183a commit 9303ce4

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

server/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def techreportlanding(page_id):
9393
requested_page = int(requested_page)
9494
selected_techs = request.args.get("selected")
9595
selected_rows = request.args.get("rows") or 10
96-
selected_rows = int(selected_rows)
96+
selected_rows = str(selected_rows)
9797

9898
last_page = request.args.get("last_page") or False
9999

src/js/techreport/tableLinked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TableLinked {
1010
this.data = data;
1111
this.dataArray = [];
1212
this.selectedTechs = this.getTechsFromURL()?.split(',') || [];
13-
this.rows = filters.rows || 10;
13+
this.rows = filters.rows || 10;
1414

1515
this.updateContent();
1616
this.updateSelectionText(this.getTechsFromURL());

templates/techreport/category.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ <h2>Technologies</h2>
144144
Rows
145145
</label>
146146
<select id="rowsPerPage">
147-
<option {% if filters.rows == 10 %}selected{% endif %}>10</option>
148-
<option {% if filters.rows == 25 %}selected{% endif %}>25</option>
149-
<option {% if filters.rows == 50 %}selected{% endif %}>50</option>
147+
<option {% if filters.rows == "10" %}selected{% endif %}>10</option>
148+
<option {% if filters.rows == "25" %}selected{% endif %}>25</option>
149+
<option {% if filters.rows == "50" %}selected{% endif %}>50</option>
150150
</select>
151151
</div>
152152
<p class="sr-only" aria-live="polite">

0 commit comments

Comments
 (0)