remove index (unused)
This commit is contained in:
parent
dbf23baa45
commit
9b1659d3dd
@ -48,14 +48,14 @@ class BookmarksController(AuthorizationMixin, WebpageController):
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
""".format(
|
""".format(
|
||||||
bookmarks="".join(self.render_bookmark(idx, b) for idx, b in enumerate(bookmarks.getBookmarks())),
|
bookmarks="".join(self.render_bookmark(b) for b in bookmarks.getBookmarks()),
|
||||||
options="".join(render_mode(m) for m in Modes.getAvailableModes()),
|
options="".join(render_mode(m) for m in Modes.getAvailableModes()),
|
||||||
)
|
)
|
||||||
|
|
||||||
def render_bookmark(self, idx: int, bookmark: Bookmark):
|
def render_bookmark(self, bookmark: Bookmark):
|
||||||
mode = Modes.findByModulation(bookmark.getModulation())
|
mode = Modes.findByModulation(bookmark.getModulation())
|
||||||
return """
|
return """
|
||||||
<tr data-index="{index}" data-id="{id}">
|
<tr data-id="{id}">
|
||||||
<td>{name}</td>
|
<td>{name}</td>
|
||||||
<td class="frequency">{frequency}</td>
|
<td class="frequency">{frequency}</td>
|
||||||
<td data-value="{modulation}">{modulation_name}</td>
|
<td data-value="{modulation}">{modulation_name}</td>
|
||||||
@ -64,7 +64,6 @@ class BookmarksController(AuthorizationMixin, WebpageController):
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
""".format(
|
""".format(
|
||||||
index=idx,
|
|
||||||
id=id(bookmark),
|
id=id(bookmark),
|
||||||
name=bookmark.getName(),
|
name=bookmark.getName(),
|
||||||
frequency=bookmark.getFrequency(),
|
frequency=bookmark.getFrequency(),
|
||||||
|
Loading…
Reference in New Issue
Block a user