Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
task/61 logger and relative import
Browse files Browse the repository at this point in the history
  • Loading branch information
YehorI committed Oct 8, 2023
1 parent f06fae9 commit 5fca248
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sapphire/users/database/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

import typer

from sapphire.users.database.service import UsersDatabaseService, get_service

from .service import UsersDatabaseService, get_service
from loguru import logger

@logger.catch
def migrate(ctx: typer.Context):
database_service: UsersDatabaseService = ctx.obj["database"]

database_service.migrate()


@logger.catch
def create(
ctx: typer.Context,
message: Optional[str] = typer.Option(
Expand Down

0 comments on commit 5fca248

Please sign in to comment.