aboutsummaryrefslogtreecommitdiff
path: root/python-twint-userlist.patch
diff options
context:
space:
mode:
authorBonfaceKilz2020-11-10 01:04:37 +0300
committerBonfaceKilz2020-11-10 02:01:08 +0300
commit2efe8a26f0a6a852dff073a8cf2694a9bbffbb89 (patch)
tree7f16c10eb643eddcc4876bb7003c5b1251ddcf34 /python-twint-userlist.patch
parent9cb0d9e3c5662198d5a0f9656c43ec4fefb9b5bc (diff)
downloadguix-bioinformatics-2efe8a26f0a6a852dff073a8cf2694a9bbffbb89.tar.gz
gn: python-twint: Patch twint to fix some bugs
* gn/packages/twint.scm (python-twint): [patches]: Add 2 new patches. [arguments]: Rename 'cast-variables-properly to 'twint-hot-fixes. * python-twint-mentions.patch: New file. * python-twint-userlist.patch: New file. See: https://github.com/twintproject/twint/issues/1012
Diffstat (limited to 'python-twint-userlist.patch')
-rw-r--r--python-twint-userlist.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/python-twint-userlist.patch b/python-twint-userlist.patch
new file mode 100644
index 0000000..1d5b860
--- /dev/null
+++ b/python-twint-userlist.patch
@@ -0,0 +1,19 @@
+diff --git a/twint/cli.py b/twint/cli.py
+index f463d68..68244c9 100644
+--- a/twint/cli.py
++++ b/twint/cli.py
+@@ -69,10 +69,10 @@ def loadUserList(ul, _type):
+ else:
+ userlist = ul.split(",")
+ if _type == "search":
+- un = ""
+- for user in userlist:
+- un += "%20OR%20from%3A" + user
+- return un[15:]
++ un = userlist[0]
++ for user in userlist[1:]:
++ un += " OR from:" + user
++ return un
+ return userlist
+
+