Browse Source

fix yearly history

marek 1 month ago
parent
commit
d87cca65c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/meteostanica.js

+ 1 - 1
utils/meteostanica.js

@@ -90,7 +90,7 @@ export default class Meteostanica {
             SELECT strftime('%Y-%m', timestamp) AS timeMark, 
                 AVG(${property}) AS value
             FROM data
-            WHERE strftime('%Y', ts) = ? -- Pass 'YYYY' here
+            WHERE strftime('%Y', timestamp) = ? -- Pass 'YYYY' here
             GROUP BY timeMark
             ORDER BY timeMark;
         `)