fix linter warnings

This commit is contained in:
Izalia Mae 2025-02-11 12:26:57 -05:00
parent 3e6a2a4f37
commit ff275a5ba4
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@ class Connection(SqlConnection):
params = {
"key": key,
"value": data.get(key, serialize = True),
"type": "LogLevel" if field.type == "logging.LogLevel" else field.type # type: ignore
"type": "LogLevel" if field.type == "logging.LogLevel" else field.type
}
with self.run("put-config", params):

View file

@ -213,7 +213,7 @@ def cli_db_maintenance(ctx: click.Context) -> None:
def cli_convert(ctx: click.Context, old_config: str) -> None:
"Convert an old config and jsonld database to the new format."
old_config = Path(old_config).expanduser().resolve() if old_config else ctx.obj.config.path
old_config = str(Path(old_config).expanduser().resolve()) if old_config else ctx.obj.config.path
backup = ctx.obj.config.path.parent.joinpath(f"{ctx.obj.config.path.stem}.backup.yaml")
if str(old_config) == str(ctx.obj.config.path) and not backup.exists():