Lowercase destination to avoid duplicate cache results

This commit is contained in:
Zeva Rose 2021-06-30 13:22:01 -06:00
parent 7781832fbd
commit ae3dc2db75

View file

@ -72,7 +72,7 @@ class DbrandCog(commands.Cog):
] ]
if len(matches) > 0: if len(matches) > 0:
search = matches[0] search = matches[0]
dest = search dest = search.lower()
data = self.cache.get(dest, None) data = self.cache.get(dest, None)
if not data: if not data:
api_link = self.api_url + dest api_link = self.api_url + dest