diff options
| author | pjotrp | 2026-04-17 14:38:51 +0200 |
|---|---|---|
| committer | pjotrp | 2026-04-17 14:38:51 +0200 |
| commit | 035d7e4f06c595e8a42d8ad6cd1ad6e42a21a4f0 (patch) | |
| tree | f3e96f41742b659e12b06b315db0dd6142c55a34 /gn/packages/patches/python-twint-mentions.patch | |
| parent | c5a09528fba9e711250888b1515ab4473dc0cea7 (diff) | |
| download | guix-bioinformatics-035d7e4f06c595e8a42d8ad6cd1ad6e42a21a4f0.tar.gz | |
Moving patches around so we can use loadpath again
Diffstat (limited to 'gn/packages/patches/python-twint-mentions.patch')
| -rw-r--r-- | gn/packages/patches/python-twint-mentions.patch | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gn/packages/patches/python-twint-mentions.patch b/gn/packages/patches/python-twint-mentions.patch deleted file mode 100644 index f792786..0000000 --- a/gn/packages/patches/python-twint-mentions.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/twint/format.py b/twint/format.py -index 334b43a..3eeb8c2 100644 ---- a/twint/format.py -+++ b/twint/format.py -@@ -29,7 +29,10 @@ def Tweet(config, t): - output = output.replace("{quote_url}", t.quote_url) - output = output.replace("{near}", t.near) - output = output.replace("{geo}", t.geo) -- output = output.replace("{mentions}", ",".join(t.mentions)) -+ output = output.replace("{mentions}", -+ ",".join(map(lambda x: x.get("screen_name", -+ None), -+ t.mentions))) - output = output.replace("{translate}", t.translate) - output = output.replace("{trans_src}", t.trans_src) - output = output.replace("{trans_dest}", t.trans_dest) |
