oops i misunderstood the api docs

This commit is contained in:
Lynne Megido 2018-11-02 00:35:56 +10:00
parent 3d03569107
commit 738e90ecb3
Signed by: lynnesbian
GPG Key ID: FB7B970303ACE499
2 changed files with 2 additions and 8 deletions

View File

@ -1,4 +0,0 @@
{
"id": "YOUR APP'S CLIENT ID HERE",
"secret": "YOUR APP'S CLIENT SECRET HERE"
}

View File

@ -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?")