Skip to content

Commit

Permalink
优化archery内置库的更新逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
Grain-Yu committed Nov 30, 2023
1 parent 8b2028d commit 0e5751a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/manual_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def listreview(request):
try:
instance = user_instances(
request.user, db_type=SUPPORTED_MANAGEMENT_DB_TYPE
).get(id=1)
).get(instance_name="archery_internal")
except Instance.DoesNotExist:
return JsonResponse({"status": 1, "msg": "你所在组未关联该实例", "data": []})

Expand Down Expand Up @@ -70,7 +70,7 @@ def editreview(request):
try:
instance = user_instances(
request.user, db_type=SUPPORTED_MANAGEMENT_DB_TYPE
).get(id=1)
).get(instance_name="archery_internal")
except Instance.DoesNotExist:
return JsonResponse({"status": 1, "msg": "你所在组未关联该实例", "data": []})

Expand Down

0 comments on commit 0e5751a

Please sign in to comment.