From 54a35c141ece7bda9fd07c662fa64695f7d6ede2 Mon Sep 17 00:00:00 2001 From: Andy Clemenko Date: Wed, 17 Apr 2024 16:29:47 -0400 Subject: [PATCH] fixing json --- dzver/app.py | 4 ++-- dzver/templates/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dzver/app.py b/dzver/app.py index 51f150c..05aad9f 100644 --- a/dzver/app.py +++ b/dzver/app.py @@ -38,7 +38,7 @@ def json_all_the_things(): hauler_data = json.loads(requests.get("https://api.github.com/repos/rancherfederal/hauler/releases/latest", headers=headers).text) hauler_out = json.dumps(hauler_data["tag_name"]).replace('"', '') - return jsonify({'k3s': k3s_out, 'rke2': rke_out, 'cert-manager': cert_out, 'rancher': rancher_out, 'longhorn': longhorn_out, 'neuvector': neuvector_out, 'harvester': harvester_out, 'hauler': hauler_out}), 200 + return jsonify({'k3s': k3s_out, 'rke2 stable': rke_out, 'rke latest': late_rke_out, 'cert-manager': cert_out, 'rancher': rancher_out, 'longhorn': longhorn_out, 'neuvector': neuvector_out, 'harvester': harvester_out, 'hauler': hauler_out}), 200 @app.route('/', methods=['GET']) def curl_all_the_things(): @@ -68,7 +68,7 @@ def curl_all_the_things(): hauler_data = json.loads(requests.get("https://api.github.com/repos/rancherfederal/hauler/releases/latest", headers=headers).text) hauler_out = json.dumps(hauler_data["tag_name"]).replace('"', '') - return render_template('index.html', rancher_ver=rancher_out, rke2_ver=rke_out, late_rke2_ver=late_rke_out, k3s_ver=k3s_out, longhorn_ver=longhorn_out, neu_ver=neuvector_out, cert_ver=cert_out, harv_ver=harvester_out, hauler_ver=hauler_out) + return render_template('index.html', rancher_ver=rancher_out, rke_ver=rke_out, late_rke_ver=late_rke_out, k3s_ver=k3s_out, longhorn_ver=longhorn_out, neu_ver=neuvector_out, cert_ver=cert_out, harv_ver=harvester_out, hauler_ver=hauler_out) if __name__ == '__main__': app.run(host='0.0.0.0',debug=False) diff --git a/dzver/templates/index.html b/dzver/templates/index.html index d0392ce..6574eed 100644 --- a/dzver/templates/index.html +++ b/dzver/templates/index.html @@ -13,11 +13,11 @@

Latest Rancher Stack Versions

Rke2 - Stable - {{rke2_ver}} + {{rke_ver}} Rke2 - Latest - {{late_rke2_ver}} + {{late_rke_ver}} K3s - Stable