Skip to content

Commit

Permalink
fix: fix parameter typing in one API route
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Dec 6, 2022
1 parent 8308027 commit ca19c7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robotoff/app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import io
import tempfile
from typing import List, Optional
import uuid

import falcon
import orjson
Expand Down Expand Up @@ -114,7 +115,7 @@ def on_get(self, req: falcon.Request, resp: falcon.Response, barcode: str):


class ProductInsightDetail:
def on_get(self, req: falcon.Request, resp: falcon.Response, insight_id: str):
def on_get(self, req: falcon.Request, resp: falcon.Response, insight_id: uuid.UUID):
try:
insight: ProductInsight = ProductInsight.get_by_id(insight_id)
except ProductInsight.DoesNotExist:
Expand Down

0 comments on commit ca19c7c

Please sign in to comment.