Skip to content

scripts/fix_thesaurus_descrizione.py

Overview

This file contains 3 documented elements.

Functions

fix_thesaurus_descrizione(db_path)

Aggiorna i record con descrizione vuota.

Parameters: - db_path

main()

No description available. Entry point of the script that orchestrates the correction of the descrizione field in thesaurus records for a SQLite database located at a hardcoded path (/Users/enzo/pyarchinit/pyarchinit_DB_folder/pyarchinitdddd.sqlite). It first verifies that the database file exists, then delegates the fix operation to fix_thesaurus_descrizione(), printing a success or failure message based on the result. Returns 0 on success or 1 if the database is not found or the fix process fails.