Changeset 94


Ignore:
Timestamp:
10/01/07 22:11:45 (5 years ago)
Author:
nigel
Message:

Changed the XMLRPC strucutre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • openweather/openweather.module

    r93 r94  
    391391    // Check person owns or can write to entry 
    392392 
    393     return db_query("INSERT INTO {openweather_readings} (nid, `time`, temp_in, temp_out, rel_hum_in, rel_hum_out, windspeed, wind_angle, wind_chill, rain_1h, rel_pressure, dewpoint) VALUES (%d, '%s', %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", $nid, $data['timestamp'], $data['temp_in'], $data['temp_out'], $data['rel_hum_in'], $data['rel_hum_out'], $data['windspeed'], $data['wind_angle'], $data['wind_chill'], $data['rain_1h'], $data['rel_pressure'], $data['dewpoint']); 
     393    return db_query("INSERT INTO {openweather_readings} (nid, `time`, temp_out, rel_hum_out, windspeed, wind_angle, wind_chill, rain_1h, rel_pressure, dewpoint) VALUES (%d, '%s', %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", $nid, $data['timestamp'], $data['temp'], $data['rel_hum'], $data['windspeed'], $data['wind_angle'], $data['wind_chill'], $data['rain_1h'], $data['rel_pressure'], $data['dewpoint']); 
    394394  } else { 
    395395    return false; 
Note: See TracChangeset for help on using the changeset viewer.