update: for 6th campaign

This commit is contained in:
Wataru Otsubo 2024-12-10 11:22:39 +09:00
parent f3b5547fc5
commit d85fa5a275

View file

@ -25,13 +25,14 @@ end
Fill qaqc_campaigns table in `db`.
"""
function insert_qaqc_campaign_id(db::SQLite.DB)
campaigns = [1, 2, 3, 4, 5]
campaigns = [1, 2, 3, 4, 5, 6]
dates = [
(DateTime(2024, 7, 22), DateTime(2024, 7, 24)),
(DateTime(2024, 8, 6), DateTime(2024, 8, 9)),
(DateTime(2024, 9, 10), DateTime(2024, 9, 12)),
(DateTime(2024, 9, 30), DateTime(2024, 10, 4)),
(DateTime(2024, 11, 11), DateTime(2024, 11, 14)),
(DateTime(2024, 12, 9), DateTime(2024, 12, 12)),
]
stmt_insert_campaigns = DBInterface.prepare(
db,
@ -212,8 +213,10 @@ function get_campaign_id_from_run_id(runid::Integer)
3
elseif runid < 293
4
elseif runid < Inf # TODO: update this at the end of 5th campaign
elseif runid < 354
5
elseif runid < Inf # TODO: update this at the end of 6th campaign
6
else
@error "Fix this function"
DomainError("runid $(runid) is not registered to the software")