Skip to content

Commit

Permalink
fixup! Move promql-query request to the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-olivert-riera committed Jul 2, 2024
1 parent 6a21b8e commit 04b06cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promgen/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ def get(self, request):
if not all(x in request.GET for x in ["shard", "query"]):
return HttpResponse("BAD REQUEST", status=400)

shard = models.Shard.objects.get(pk=request.GET["shard"])
shard = get_object_or_404(models.Shard, pk=request.GET["shard"])
params = {"query": request.GET["query"]}
headers = {}

Expand Down

0 comments on commit 04b06cc

Please sign in to comment.