Commit 8a91be77 authored by Hiro's avatar Hiro 🏄
Browse files

Fix json typo

parent 74fbbc77
......@@ -128,7 +128,7 @@ class Twitterdm(object):
log.info("Got new help request.")
for request in help_requests:
ids = json.loads("{}".format(request[0]))
ids = json.loads("{}".format(request[0].replace("'", '"')))
message_id = ids['id']
twitter_id = ids['twitter_handle']
date = request[5]
......@@ -163,7 +163,7 @@ class Twitterdm(object):
log.info("Got new links request.")
for request in link_requests:
ids = json.loads("{}".format(request[0]))
ids = json.loads("{}".format(request[0].replace("'", '"')))
message_id = ids['id']
twitter_id = ids['twitter_handle']
date = request[5]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment