Skip to content

Commit

Permalink
fix for python3.11 f string compat issue, re #10781
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Apr 18, 2024
1 parent 45b905a commit be4bcfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arches/app/views/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,12 @@ def delete(self, request, graphid):
try:
graph = Graph.objects.get(graphid=graphid)
resp = graph.delete_instances(userid=request.user.id)
success = resp["success"]
return JSONResponse(
{
"success": resp["success"],
"message": resp["message"],
"title": f"Resources {'Successfully' if resp["success"] else 'Unsuccessfully'} Deleted from {graph.name}.",
"title": f"Resources {'Successfully' if success else 'Unsuccessfully'} Deleted from {graph.name}.",
}
)
except GraphValidationError as e:
Expand Down

0 comments on commit be4bcfb

Please sign in to comment.