From 738e90ecb33b9664d1db3b848e8bb521dac5711a Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 2 Nov 2018 00:35:56 +1000 Subject: [PATCH] oops i misunderstood the api docs --- auth.sample.json | 4 ---- login.py | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 auth.sample.json diff --git a/auth.sample.json b/auth.sample.json deleted file mode 100644 index 467ec34..0000000 --- a/auth.sample.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "id": "YOUR APP'S CLIENT ID HERE", - "secret": "YOUR APP'S CLIENT SECRET HERE" -} \ No newline at end of file diff --git a/login.py b/login.py index 5f9e1e5..a3a8db0 100644 --- a/login.py +++ b/login.py @@ -11,8 +11,6 @@ db = sqlite3.connect("database.db") c = db.cursor() c.execute("CREATE TABLE IF NOT EXISTS `data` (username VARCHAR NOT NULL, secret VARCHAR NOT NULL, latest_post VARCHAR)") -try: - client_auth = json.load(open("auth.json")) -except Exception: #todo: only handle file not found - print("Couldn't load auth.json, are you sure you created it?") + +