mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
More data for mobile layout and extra defensive coding
This commit is contained in:
@@ -139,7 +139,9 @@ class WebServer:
|
|||||||
spot_ids = list(self.spots.iterkeys())
|
spot_ids = list(self.spots.iterkeys())
|
||||||
spots = []
|
spots = []
|
||||||
for k in spot_ids:
|
for k in spot_ids:
|
||||||
spots.append(self.spots.get(k))
|
s = self.spots.get(k)
|
||||||
|
if s is not None:
|
||||||
|
spots.append(s)
|
||||||
spots = sorted(spots, key=lambda spot: (spot.time if spot and spot.time else 0), reverse=True)
|
spots = sorted(spots, key=lambda spot: (spot.time if spot and spot.time else 0), reverse=True)
|
||||||
for k in query.keys():
|
for k in query.keys():
|
||||||
match k:
|
match k:
|
||||||
|
|||||||
@@ -225,13 +225,13 @@ function updateTable() {
|
|||||||
}
|
}
|
||||||
$td2 = $("<td colspan='100'>");
|
$td2 = $("<td colspan='100'>");
|
||||||
if (showSource) {
|
if (showSource) {
|
||||||
$td2.append(`<span class='icon-wrapper'><i class='fa-solid fa-${s["icon"]}'></i></span> `);
|
$td2.append(`<span class='icon-wrapper'><i class='fa-solid fa-${s["icon"]}'></i></span> ${sigSourceText} `);
|
||||||
}
|
}
|
||||||
if (showRef) {
|
if (showRef) {
|
||||||
$td2.append(`${sig_refs} `);
|
$td2.append(`${sig_refs} `);
|
||||||
}
|
}
|
||||||
if (showBearing) {
|
if (showBearing) {
|
||||||
$td2.append(`${bearingText} `);
|
$td2.append(` Bearing: ${bearingText} `);
|
||||||
}
|
}
|
||||||
if (showComment) {
|
if (showComment) {
|
||||||
$td2.append(`<br/>${commentText}`);
|
$td2.append(`<br/>${commentText}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user