update: add campaign 7

This commit is contained in:
Wataru Otsubo 2025-01-21 14:35:38 +09:00
parent e9067d9823
commit c38ad82785

View file

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