fix: create_database_from_exported_csvs error

- jathub_table must be DataFrame
This commit is contained in:
Wataru Otsubo 2024-10-01 18:46:06 +09:00
parent f248b3b7e2
commit 29399c094a

View file

@ -29,14 +29,18 @@ include("import_data.jl")
Create database at `dbpath` and import data from CSV and master log files.
# Arguments
## Required
- `dbpath`: where the database will be created
- `masterlog_dir`: path to the directory (`log`) where all JATHub master logs are stored
- `slavelog_dir`: path to the directory where all JATHub slave logs are stored
## Optional
- `single_run_csv`: CSV of single run results exported from the Google sheets database
- `runlist_csv`: CSV of run lists exported from the Google sheets database
- `dispatch_csv`: CSV of dispatch lists exported from the Google sheets database
- `hundred_csv`: CSV of 100 tests results exported from the Google sheets database
- `jathubs_csv`: CSV for jathub list used in QAQC. Used to add skew.
- `masterlog_dir`: path to the directory (`log`) where all JATHub master logs are stored
- `slavelog_dir`: path to the directory where all JATHub slave logs are stored
"""
function create_database_from_exported_csvs(
dbpath::AbstractString;
@ -53,9 +57,10 @@ function create_database_from_exported_csvs(
runlist_table = CSV.read(runlist_csv, DataFrame)
dispatch_table = CSV.read(dispatch_csv, DataFrame)
extra_100test_result_df = CSV.read(hundred_csv, DataFrame)
jathubs_table = CSV.read(jathubs_csv, DataFrame)
insert_qaqc_campaign_id(db)
insert_qaqc_positions(db, jathubs_csv)
insert_qaqc_positions(db, jathubs_table)
add_psboard_ids(db, single_result_df)
add_qaqc_runlist_from_runlist(db, runlist_table)