From f03a825c5dd9ac8e51aec4d9a27043e00f77136d Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 6 Apr 2022 04:48:39 -0300 Subject: [PATCH] Fix crawler --- tools/redditcrawl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/redditcrawl.py b/tools/redditcrawl.py index ee22378e..bd7101a2 100755 --- a/tools/redditcrawl.py +++ b/tools/redditcrawl.py @@ -59,7 +59,7 @@ # Two escape it again in the regex parser, so \\\\ is \ # Then anything but " or n is replaced with the first capture group (anything but " or n) # Test in repl: re.sub("\\\\([^\"n])", "\\1", "\\t < removed slash, t stays and > stays \\n \\\"") - re.sub("\\\\([^\"n])", "\\1", text) + text = re.sub("\\\\([^\"n])", "\\1", text) try: text = text.replace("\"id\": 0,", "\"id\": 0,\n\t\t\"submitted_by\": \""+submission.author.name+"\",") except AttributeError: