From 47f13e3dc1c27b5a56523ae9e481917d8ada6412 Mon Sep 17 00:00:00 2001 From: haliphax Date: Tue, 7 Mar 2023 18:18:42 -0600 Subject: [PATCH] fix userland seed imports --- userland/cli/seed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/userland/cli/seed.py b/userland/cli/seed.py index cf93ba8..b4e0a89 100644 --- a/userland/cli/seed.py +++ b/userland/cli/seed.py @@ -5,13 +5,14 @@ from inspect import isclass # local -from xthulu import db from xthulu.configuration import get_config +from xthulu.resources import Resources async def seed(): """Seed userland model data.""" + db = Resources().db await db.set_bind(get_config("db.bind")) models = __import__("userland.models", fromlist=("*",))