瀏覽代碼

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 年之前
父節點
當前提交
cae8e444aa
共有 1 個文件被更改,包括 2 次插入0 次删除
  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" >