Trim system names to avoid errors due to blank spaces

This commit is contained in:
CMDR-Kiel42 2019-08-06 11:20:13 +02:00
parent ed942e18f5
commit ec1f76b683

View File

@ -118,7 +118,7 @@ class AutoCompleter(Entry, PlaceHolder):
self.lb_up = False
def query_systems(self):
inp = self.var.get()
inp = self.var.get().strip()
if inp != self.placeholder and inp.__len__() >= 3:
url = "https://spansh.co.uk/api/systems?"
try: