From c38ad82785845ec6e939b043b1f1e9dcda61836e Mon Sep 17 00:00:00 2001 From: Wataru Otsubo Date: Tue, 21 Jan 2025 14:35:38 +0900 Subject: [PATCH] update: add campaign 7 --- src/import_data.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/import_data.jl b/src/import_data.jl index 7421dcd..2fcc271 100644 --- a/src/import_data.jl +++ b/src/import_data.jl @@ -25,7 +25,7 @@ end Fill qaqc_campaigns table in `db`. """ function insert_qaqc_campaign_id(db::SQLite.DB) - campaigns = [1, 2, 3, 4, 5, 6] + campaigns = [1, 2, 3, 4, 5, 6, 7] dates = [ (DateTime(2024, 7, 22), DateTime(2024, 7, 24)), (DateTime(2024, 8, 6), DateTime(2024, 8, 9)), @@ -33,6 +33,7 @@ function insert_qaqc_campaign_id(db::SQLite.DB) (DateTime(2024, 9, 30), DateTime(2024, 10, 4)), (DateTime(2024, 11, 11), DateTime(2024, 11, 14)), (DateTime(2024, 12, 9), DateTime(2024, 12, 12)), + (DateTime(2025, 1, 20), DateTime(2024, 1, 23)), ] stmt_insert_campaigns = DBInterface.prepare( db, @@ -215,8 +216,10 @@ function get_campaign_id_from_run_id(runid::Integer) 4 elseif runid < 354 5 - elseif runid < Inf # TODO: update this at the end of 6th campaign + elseif runid < 425 6 + elseif 448 ≤ runid < Inf # TODO: update this at the end of 6th campaign + 7 else @error "Fix this function" DomainError("runid $(runid) is not registered to the software")