Skip to content

Commit

Permalink
GH-4: Remove loading of user data
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparrow0hawk committed Oct 23, 2023
1 parent 63463cd commit 08ecb4d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions schemes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ def bindings(binder: Binder) -> None:
app.register_blueprint(users.bp, url_prefix="/users")

_create_database()
if not app.testing:
_configure_users()

return app

Expand Down Expand Up @@ -101,11 +99,3 @@ def _create_database() -> None:
with engine.connect() as connection:
alembic_config.attributes["connection"] = connection
command.upgrade(alembic_config, "head")


def _configure_users() -> None:
user_repository = inject.instance(UserRepository)
if not user_repository.get_all():
user_repository.add(
User("[email protected]"), User("[email protected]")
)

0 comments on commit 08ecb4d

Please sign in to comment.