Skip to content

Commit

Permalink
feat: CheckStatus api update
Browse files Browse the repository at this point in the history
  • Loading branch information
lz-aug committed Jan 15, 2023
1 parent 27f648c commit af6dac3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ def get(self, request: Request):
doc = Document.objects.filter(user=user).defer("file").order_by("-id")
count = doc.count()

result = doc.first().result
first = doc.first()
if not first:
return Response({"code": "30001", "msg": "no contract was uploaded"})
result = first.result
corethril = result.get("corethril")
core_slither = result.get("core_slither")

Expand Down

0 comments on commit af6dac3

Please sign in to comment.