Commit 25071e08fbbbd42614500fbf5cca8bcb1a366fb6

Authored by Goutte
1 parent 59dfb4fc

Easy fix to support not having orbit ellipse parameters in target's configuration.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
web/view/home.html.jinja2
... ... @@ -548,7 +548,7 @@ var configuration = {
548 548 slug: '{{ target.slug }}',
549 549 name: '{{ target.name }}',
550 550 active: true,
551   - orbit: { a: {{ target.orbit.semimajor }}, b: {{ target.orbit.semiminor }} },
  551 + orbit: { a: {{ target.orbit.semimajor or 0 }}, b: {{ target.orbit.semiminor or 0 }} },
552 552 img: '{{ static('img/target/'~target.slug~'_128.png') }}'
553 553 }
554 554 {% endfor %}
... ...