Changeset adb0f52


Ignore:
Timestamp:
11/20/2014 11:47:30 PM (10 years ago)
Author:
njw <njw@…>
Branches:
master
Children:
516b934
Parents:
9125727
Message:

Fetch one result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • de.wigbels.ruby/hothotwrite/hhw.rb

    r9125727 radb0f52  
    5353    log.info("Inserted sensor: #{sensorid} with data: #{data}")
    5454  else
    55     years = dbh.query( %Q"select count(distinct year(measuredat)) FROM sensor" )
    56     put years
     55    years = dbh.query( %Q"select count(distinct year(measuredat)) FROM sensor" ).fetch_row[0]
    5756    # Auswertung Gesamtes Jahr, Monat, Vergleich Vorjahr
    5857    myquery = %Q{ select sum(data), 'Liter Verbrauch in #{month}-#{logyear}' \
Note: See TracChangeset for help on using the changeset viewer.