oops i misunderstood the api docs
This commit is contained in:
parent
3d03569107
commit
738e90ecb3
2 changed files with 2 additions and 8 deletions
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"id": "YOUR APP'S CLIENT ID HERE",
|
|
||||||
"secret": "YOUR APP'S CLIENT SECRET HERE"
|
|
||||||
}
|
|
6
login.py
6
login.py
|
@ -11,8 +11,6 @@ db = sqlite3.connect("database.db")
|
||||||
c = db.cursor()
|
c = db.cursor()
|
||||||
|
|
||||||
c.execute("CREATE TABLE IF NOT EXISTS `data` (username VARCHAR NOT NULL, secret VARCHAR NOT NULL, latest_post VARCHAR)")
|
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?")
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue