summaryrefslogtreecommitdiff
path: root/fill-db.rb
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-05-01 06:16:19 +0200
committerpks <pks@pks.rocks>2021-05-01 06:16:19 +0200
commit63fbf0f3aadb4b6d037a8164b501fe836d9c361d (patch)
treea33240dfd9ad5c57f283e942514bb8ce67d71085 /fill-db.rb
parent00fdbd489494c917865cf3fbf153e5751052e2d1 (diff)
v1
Diffstat (limited to 'fill-db.rb')
-rwxr-xr-xfill-db.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/fill-db.rb b/fill-db.rb
index c4fa513..1bfc0f2 100755
--- a/fill-db.rb
+++ b/fill-db.rb
@@ -17,7 +17,7 @@ wind_conv = {"chill"=>float, "temperature"=>float,"average_speed"=>float,"direct
temp_conv = {"humidity"=>float, "humidity_status"=>str,"humidity_status_numeric"=>int,"temperature"=>float}.merge(common_conv)
conv = { "rain" => rain_conv, "wind" => wind_conv, "temp" => temp_conv }
-$db = SQLite3::Database.new("weather.db")
+$db = SQLite3::Database.new("db/weather.db")
def parse_to_hash s, conv
h = {}