Skip to content

Commit

Permalink
Fix issue #24
Browse files Browse the repository at this point in the history
lowercase was missing...
  • Loading branch information
lekeno committed Dec 11, 2017
1 parent f230a83 commit f50cdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edr/edrserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def system_id(self, star_system):

def cmdr(self, cmdr, autocreate=True):
cmdr_profile = edrcmdrprofile.EDRCmdrProfile()
query_params = "orderBy=\"cname\"&equalTo={cmdr}&limitToFirst=1&auth={auth}".format(cmdr=json.dumps(cmdr), auth=self.auth_token())
query_params = "orderBy=\"cname\"&equalTo={cmdr}&limitToFirst=1&auth={auth}".format(cmdr=json.dumps(cmdr.lower()), auth=self.auth_token())
endpoint = "{server}/v1/cmdrs.json?{query_params}".format(
server=self.EDR_ENDPOINT, query_params=query_params)
EDRLOG.log(u"Endpoint :" + endpoint, "DEBUG")
Expand Down

0 comments on commit f50cdba

Please sign in to comment.