From 78eadbe2ca3b3b047c2c7e4f7a588204d41ea40a Mon Sep 17 00:00:00 2001 From: ccqun Date: Fri, 29 Mar 2024 04:04:57 +0800 Subject: [PATCH] Fixed small bug in sample code --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index fb540e0..2a5d657 100644 --- a/README.rst +++ b/README.rst @@ -65,7 +65,7 @@ A Simple Example app = Quart(__name__) db = QuartSQLAlchemy( - config=SQLAlchemyConfig + config=SQLAlchemyConfig( binds=dict( default=dict( engine=dict( @@ -79,14 +79,14 @@ A Simple Example ) ) ), - app, + app=app, ) class User(db.Model) __tablename__ = "user" id: Mapped[int] = mapped_column(sa.Identity(), primary_key=True, autoincrement=True) - name: Mapped[str] = mapped_column(default="default") + username: Mapped[str] = mapped_column(default="default") db.create_all()