aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-06-08 19:05:47 +0300
committerFrederick Muriuki Muriithi2023-06-08 19:05:47 +0300
commit7a0eaffa4da8f942d4e6b71f64c46e895abe1bc8 (patch)
tree6d301c9dbe4be89b79fc837f5c0a653a98a6655e
parentfde05140fc1a059af265b3c298cc0b503c6768d6 (diff)
downloadgenenetwork3-7a0eaffa4da8f942d4e6b71f64c46e895abe1bc8.tar.gz
bug: Function expects pathlib.Path not str
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
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 #####