(
    department_name,
    officers_csv,
    assignments_csv,
    salaries_csv,
    links_csv,
    incidents_csv,
    force_create,
)
Add or update officers, assignments, salaries, links and incidents from csv
    files in the department DEPARTMENT_NAME.

    The csv files are treated as the source of truth.
    Existing entries might be overwritten as a result, backing up the
    database and running the command locally first is highly recommended.

    See the documentation before running the command.
Add or update officers, assignments, salaries, links and incidents from csv
    files in the department DEPARTMENT_NAME.
Add or update officers assignments salaries links and incidents from csv files in the department DEPARTMENT_NAME .
def advanced_csv_import(
    department_name,
    officers_csv,
    assignments_csv,
    salaries_csv,
    links_csv,
    incidents_csv,
    force_create,
):
    """
    Add or update officers, assignments, salaries, links and incidents from csv
    files in the department DEPARTMENT_NAME.

    The csv files are treated as the source of truth.
    Existing entries might be overwritten as a result, backing up the
    database and running the command locally first is highly recommended.

    See the documentation before running the command.
    """
    if force_create and current_app.config["ENV"] == "production":
        raise Exception("--force-create cannot be used in production!")

    import_csv_files(
        department_name,
        officers_csv,
        assignments_csv,
        salaries_csv,
        links_csv,
        incidents_csv,
        force_create,
    )
def advanced_csv_import ( department_name , officers_csv , assignments_csv , salaries_csv , links_csv , incidents_csv , force_create , ) : if force_create and current_app . config [ "ENV" ] == "production" : raise Exception ( "--force-create cannot be used in production!" ) import_csv_files ( department_name , officers_csv , assignments_csv , salaries_csv , links_csv , incidents_csv , force_create , )