Przeglądaj źródła

Bug fix for lightning data

Needed to have an if statement to check if lightningStrikes has data. This fixes a bug that caused the template to fail in weewx.
Josh Smith 4 lat temu
rodzic
commit
cae8e444aa
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      year.html.tmpl

+ 2 - 0
year.html.tmpl

@@ -258,6 +258,7 @@
             </table>
           </div>
 	  <!-- Only needed if your stations has lightning detection
+	  #if $year.lightningStrikes.has_data
 	  <div class="card" >
             <h1><i class="fas fa-bolt m-orange" ></i> Total Lightning Strikes</h1>
             <table class="tablespacer">
@@ -273,6 +274,7 @@
 	      #end if
             </table>
           </div>
+	  #end if
 	  -->
 	  #if $year($years_ago=1).outTemp.max.string != "   N/A"
           <div class="card" >