diff --git a/api.py b/api.py index 9f06a33..d1b0256 100644 --- a/api.py +++ b/api.py @@ -347,21 +347,21 @@ async function loadLost() { var data = await res.json(); var html = "

lost builders (" + (data.total || 0) + ")

"; - html += "

people who need to see that someone like them made it

"; + html += '

people who need to see that someone like them made it

'; if (!data.matches || data.matches.length === 0) { - html += "
no lost builders found
"; + html += '
no lost builders found
'; } for (var i = 0; i < (data.matches || []).length; i++) { var m = data.matches[i]; - html += "
"; - html += "
LOST: " + m.lost_user + "" + m.match_score + "
"; - html += "
lost: " + m.lost_score + " | values: " + m.values_score + "
"; - html += "
BUILDER: " + m.builder + " (" + m.builder_platform + ")
"; - html += "
score: " + m.builder_score + " | repos: " + m.builder_repos + " | stars: " + m.builder_stars + "
"; - html += "
shared: " + (m.shared || []).join(", ") + "
"; - html += "
"; + html += '
"; + html += '
LOST: " + m.lost_user + "" + m.match_score + "
'; + html += '
lost: " + m.lost_score + " | values: " + m.values_score + "
'; + html += '
BUILDER: " + m.builder + " (" + m.builder_platform + ")
'; + html += '
score: " + m.builder_score + " | repos: " + m.builder_repos + " | stars: " + m.builder_stars + "
'; + html += '
shared: " + (m.shared || []).join(", ") + "
'; + html += '
'; } $("lost").innerHTML = html; @@ -1054,7 +1054,7 @@ class APIHandler(BaseHTTPRequestHandler): db = Database() stats = db.stats() db.close() - + # add central API stats if configured if CENTRAL_API and CENTRAL_KEY: try: @@ -1072,7 +1072,7 @@ class APIHandler(BaseHTTPRequestHandler): } except Exception as ce: stats['central'] = {'error': str(ce)} - + self._send_json(stats) except Exception as e: self._send_json({'error': str(e)}, 500)