From 17fa306b09681895d9698f380074f593d13b6995 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 16 Mar 2023 21:26:31 +0000 Subject: [PATCH] More QM fields in JSON export --- templates/core/QMs_json_list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/core/QMs_json_list.html b/templates/core/QMs_json_list.html index 3c5b1ba..8d31168 100644 --- a/templates/core/QMs_json_list.html +++ b/templates/core/QMs_json_list.html @@ -1,5 +1,5 @@ {% extends "baseapi.html" %} {% block content %}{ -{% for qm in object_list %}{% if not forloop.last %}"{{qm.number}}": - ["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.get_absolute_url}}"],{% endif %}{% if forloop.last %}"{{qm.number}}": ["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.get_absolute_url}}"]{% endif %} +{% for qm in object_list %}{% if not forloop.last %}"{{qm.id}}": + ["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.nearest_station_name}}","{{qm.resolution_station_name}}","{{qm.get_absolute_url}}"],{% endif %}{% if forloop.last %}"{{qm.number}}": ["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.nearest_station_name}}","{{qm.resolution_station_name}}","{{qm.get_absolute_url}}"]{% endif %} {% endfor %} }{% endblock %} \ No newline at end of file