Commit 607631aa authored by Jan Reimes's avatar Jan Reimes
Browse files

🤖 chore(query): wrap handle_clear_options calls in asyncio.run

parent ac46d10c
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -66,12 +66,14 @@ def query_meetings(
    )

    db_file = path_config.db_file
    asyncio.run(
        handle_clear_options(
            db_file,
            path_config.checkout_dir,
            MeetingDatabase,
            clear_tdocs=clear_tdocs,
            clear_specs=clear_specs,
        ),
    )

    async def run_query() -> list:
+8 −6
Original line number Diff line number Diff line
@@ -66,12 +66,14 @@ def query_specs(
        raise typer.Exit(code=2) from exc

    db_file = path_config.db_file
    asyncio.run(
        handle_clear_options(
            db_file,
            path_config.checkout_dir,
            SpecDatabase,
            clear_tdocs=clear_tdocs,
            clear_specs=clear_specs,
        ),
    )

    async def run_query() -> list:
+8 −6
Original line number Diff line number Diff line
@@ -100,12 +100,14 @@ def query_tdocs(
    )

    db_file = path_config.db_file
    asyncio.run(
        handle_clear_options(
            db_file,
            path_config.checkout_dir,
            TDocDatabase,
            clear_tdocs=clear_tdocs,
            clear_specs=clear_specs,
        ),
    )

    async def run_query() -> list: