Skip to content

Commit

Permalink
fix: sort parameter is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
TaykYoku committed Jun 23, 2022
1 parent b77166a commit eb39d8a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TransformationMonitorHandler(WebHandler):
DEFAULT_AUTHORIZATION = "authenticated"

def web_getSelectionData(self):
if self.getUserName() == "Anonymous":
if self.getUserName().lower() == "anonymous":
return {"prod": [["Insufficient rights"]]}

tsClient = TransformationClient()
Expand Down Expand Up @@ -78,7 +78,7 @@ def web_getSelectionData(self):

def web_getTransformationData(
self,
sort,
sort=None,
date=None,
endDate=None,
endTime=None,
Expand All @@ -97,7 +97,7 @@ def web_getTransformationData(
):
pagestart = datetime.datetime.utcnow()

if self.getUserName() == "Anonymous":
if self.getUserName().lower() == "anonymous":
return {"success": "false", "error": "You are not authorised"}

params = self.__prepareParameters(
Expand Down

0 comments on commit eb39d8a

Please sign in to comment.