From 4eaf92f08537d8dfcab15b20de79c42e4d7a5319 Mon Sep 17 00:00:00 2001 From: qcminecraft Date: Sat, 6 Feb 2021 14:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- x61bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x61bot.py b/x61bot.py index 944b8a1..75f54e7 100644 --- a/x61bot.py +++ b/x61bot.py @@ -82,7 +82,7 @@ if __name__ == '__main__': res = c.execute('UPDATE "main"."result" SET "post_time" = ? WHERE rowid = ?', (time.time(), r[0])) if not (res is None): reg = re.compile('<[^>]*>') - desc = reg.sub('', r[4]).replace('\n\n', '\n').replace(' ', '').replace('\n\n\n', '') + desc = reg.sub('', r[4]).replace(' ', '').replace('\n\n\n', '\n') content = "**"+r[3]+"**\n\n"+desc+"\n<"+r[2]+">\n"+rules[key]['extra_content'] if Misskey.debug: config[name]['visibility'] = "specified"