From ae3dc2db75dc88a1a78570c57fa2f25ce26ed760 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Wed, 30 Jun 2021 13:22:01 -0600 Subject: [PATCH] Lowercase destination to avoid duplicate cache results --- jarvis/cogs/dbrand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/cogs/dbrand.py b/jarvis/cogs/dbrand.py index 6e9389c..5a332c0 100644 --- a/jarvis/cogs/dbrand.py +++ b/jarvis/cogs/dbrand.py @@ -72,7 +72,7 @@ class DbrandCog(commands.Cog): ] if len(matches) > 0: search = matches[0] - dest = search + dest = search.lower() data = self.cache.get(dest, None) if not data: api_link = self.api_url + dest