Skip to content

Commit

Permalink
Remove suffix from masu trino endpoint (#5154)
Browse files Browse the repository at this point in the history

Co-authored-by: Michael Skarbek <[email protected]>
  • Loading branch information
myersCody and maskarb committed Jun 13, 2024
1 parent 97cc513 commit 7578ea1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions koku/masu/api/trino.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def trino_query(request):
if query is None:
errmsg = "Must provide a query key to run."
return Response({"Error": errmsg}, status=status.HTTP_400_BAD_REQUEST)
query = query.strip().removesuffix(";")
if schema_name is None:
errmsg = "Must provide a schema key to run."
return Response({"Error": errmsg}, status=status.HTTP_400_BAD_REQUEST)
Expand Down

0 comments on commit 7578ea1

Please sign in to comment.