Pārlūkot izejas kodu

write dummy data for old passes on prediction table

tags/1.5
Nico Rey pirms 4 gadiem
vecāks
revīzija
1996f25f95
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      migrate_data.sh

+ 3
- 0
migrate_data.sh Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt