From 25071e08fbbbd42614500fbf5cca8bcb1a366fb6 Mon Sep 17 00:00:00 2001 From: Goutte Date: Fri, 22 Sep 2017 15:43:19 +0200 Subject: [PATCH] Easy fix to support not having orbit ellipse parameters in target's configuration. --- web/view/home.html.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/view/home.html.jinja2 b/web/view/home.html.jinja2 index 5a3694f..bafa37e 100755 --- a/web/view/home.html.jinja2 +++ b/web/view/home.html.jinja2 @@ -548,7 +548,7 @@ var configuration = { slug: '{{ target.slug }}', name: '{{ target.name }}', active: true, - orbit: { a: {{ target.orbit.semimajor }}, b: {{ target.orbit.semiminor }} }, + orbit: { a: {{ target.orbit.semimajor or 0 }}, b: {{ target.orbit.semiminor or 0 }} }, img: '{{ static('img/target/'~target.slug~'_128.png') }}' } {% endfor %} -- libgit2 0.21.2