Skip to content

Commit

Permalink
nit remove mutable default parameter value archesproject#10704
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-he committed Aug 14, 2024
1 parent 8b9c966 commit d8522fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arches/app/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2149,7 +2149,11 @@ def get(self, request, identifier=None):

return JSONResponse(response_data)

def attribute_nodes_are_valid(self, geom_node, attribute_nodeids=[]):
def attribute_nodes_are_valid(self, geom_node, attribute_nodeids=None):

if not attribute_nodeids:
return False

attribute_node_graphs = [
n.graph_id for n in models.Node.objects.filter(nodeid__in=attribute_nodeids)
]
Expand Down

0 comments on commit d8522fa

Please sign in to comment.