From e42b5c0d7f5deeeedd1e6aeaf9cb09677d41d944 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Mon, 3 Oct 2016 20:04:23 -0500 Subject: [PATCH] Corrected the error where the tag replacing caused multiple tags to fail --- cogs/links.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogs/links.py b/cogs/links.py index 7660ad4..4db273a 100644 --- a/cogs/links.py +++ b/cogs/links.py @@ -136,6 +136,8 @@ class Links: # This changes the formatting for queries, so we don't # Have to use e621's stupid formatting when using the command tags = tags.replace(' ', '_') + tags = tags.replace(',_', ' ') + url = 'https://e621.net/post/index.json' params = {'limit': 320, 'tags': tags}