[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gettor/master] Fix json typo
commit 8a91be771a0391793f14192c7e845ded9ad868de
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Tue Oct 15 21:44:46 2019 +0200
Fix json typo
---
gettor/services/twitter/twitterdm.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gettor/services/twitter/twitterdm.py b/gettor/services/twitter/twitterdm.py
index 11659f9..abc7c78 100644
--- a/gettor/services/twitter/twitterdm.py
+++ b/gettor/services/twitter/twitterdm.py
@@ -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]
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits