From b33032dd8306640be323676b61c9ac670bfec98d Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Tue, 28 Jul 2020 11:17:42 -0700 Subject: [PATCH] Fix incorrect import statements in examples --- examples/db/db_jsonkey.py | 2 +- examples/maqpi/manual_auth.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/db/db_jsonkey.py b/examples/db/db_jsonkey.py index 9dab23c..9f59c18 100644 --- a/examples/db/db_jsonkey.py +++ b/examples/db/db_jsonkey.py @@ -1,4 +1,4 @@ -from simple import db +from replit import db def demo(): diff --git a/examples/maqpi/manual_auth.py b/examples/maqpi/manual_auth.py index 2cdaecf..0721672 100644 --- a/examples/maqpi/manual_auth.py +++ b/examples/maqpi/manual_auth.py @@ -1,15 +1,15 @@ """A basic example of repl auth.""" -import simple +from replit import maqpy -app = simple.App("app") +app = maqpy.App("app") @app.route("/") def index(): - if simple.signed_in: - return "Hello " + simple.auth.name + if maqpy.signed_in: + return "Hello " + maqpy.auth.name else: - return simple.signin() # optionally: simple.sigin(title="My title") + return maqpy.signin() # optionally: simple.sigin(title="My title") if __name__ == "__main__":