From 1996f25f95fe2b571f4e405f2b96b9e51fd0379e Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Sun, 27 Sep 2020 21:13:41 -0300 Subject: [PATCH] write dummy data for old passes on prediction table --- migrate_data.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/migrate_data.sh b/migrate_data.sh index b4e1028..6317d45 100644 --- a/migrate_data.sh +++ b/migrate_data.sh @@ -25,7 +25,10 @@ for filename in $(find . -name *.jpg); do cp "$BASEPATH/$filename" "$FINALPATH" if [[ $basename == *"METEOR"* ]]; then sqlite3 "$DB_PATH" "insert into decoded_passes (pass_start, file_path, daylight_pass, is_noaa) values ($epoch_date,\"$passname\",1,0);" + sqlite3 "$DB_PATH" "insert into decoded_passes (pass_start, file_path, daylight_pass, is_noaa) values ($epoch_date,\"$passname\",1,0);" + sqlite3 "$DB_PATH" "insert or replace into predict_passes (sat_name,pass_start,pass_end,max_elev) values (\"$sat_name\",$epoch_date,$epoch_date,0);" elif [[ $basename == *"ZA"* ]]; then + sqlite3 "$DB_PATH" "insert or replace into predict_passes (sat_name,pass_start,pass_end,max_elev) values (\"$sat_name\",$epoch_date,$epoch_date,0);" if [[ -f "$FINALPATH/$passname-MSA.jpg" ]]; then sqlite3 "$DB_PATH" "insert into decoded_passes (pass_start, file_path, daylight_pass, is_noaa) values ($epoch_date,\"$passname\",1,1);" else