mirror of
https://github.com/house-of-vanity/conf_bot.git
synced 2025-07-06 22:34:07 +00:00
Hotfix for reset.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
assets/cert*
|
assets/cert*
|
||||||
**/settings.ini
|
**/settings.ini
|
||||||
|
**/__pycache__/*
|
||||||
main.db
|
main.db
|
||||||
main.db-journal
|
main.db-journal
|
||||||
settings.ini
|
settings.ini
|
||||||
|
@ -90,6 +90,7 @@ class DataBase:
|
|||||||
user_id,
|
user_id,
|
||||||
conf_id,
|
conf_id,
|
||||||
user_id,
|
user_id,
|
||||||
|
conf_id,
|
||||||
limit
|
limit
|
||||||
)
|
)
|
||||||
result = self.execute(sql)
|
result = self.execute(sql)
|
||||||
@ -126,4 +127,4 @@ class DataBase:
|
|||||||
|
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
self.conn.close()
|
self.conn.close()
|
||||||
|
@ -30,10 +30,6 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
|||||||
length = self.headers.get('content-length')
|
length = self.headers.get('content-length')
|
||||||
post_body = self.rfile.read(int(length))
|
post_body = self.rfile.read(int(length))
|
||||||
msg = json.loads(post_body.decode("utf-8"))
|
msg = json.loads(post_body.decode("utf-8"))
|
||||||
msg2 = post_body.decode("utf-8")
|
|
||||||
fh = open("log.json","a+")
|
|
||||||
fh.write(msg2)
|
|
||||||
fh.close()
|
|
||||||
self.worker.handleUpdate(msg)
|
self.worker.handleUpdate(msg)
|
||||||
|
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
|
Reference in New Issue
Block a user