From 7a0eaffa4da8f942d4e6b71f64c46e895abe1bc8 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 8 Jun 2023 19:05:47 +0300 Subject: bug: Function expects pathlib.Path not str --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index a8c6cec..d74f3aa 100644 --- a/main.py +++ b/main.py @@ -3,6 +3,7 @@ import sys import uuid import json from math import ceil +from pathlib import Path from datetime import datetime @@ -119,7 +120,7 @@ def make_data_public(): @app.cli.command() def register_admin(): """Register the administrator.""" - rsysadm.register_admin(app.config["AUTH_DB"]) + rsysadm.register_admin(Path(app.config["AUTH_DB"])) ##### END: CLI Commands ##### -- cgit v1.2.3