Skip to content

Commit 7fda818

Browse files
committed
Fix missing postProcessingMillis in older GDS plugin version
1 parent 3cdd4f9 commit 7fda818

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

graphdatascience/procedure_surface/cypher/pathfinding/max_flow_cypher_endpoints.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ def stats(
9797
endpoint="gds.maxFlow.stats", params=params, logging=log_progress
9898
).squeeze()
9999

100-
return MaxFlowStatsResult(**cypher_result.to_dict())
100+
raw_result = cypher_result.to_dict()
101+
# return field got added in 2.24
102+
if "postProcessingMillis" not in raw_result:
103+
raw_result["postProcessingMillis"] = 0
104+
105+
return MaxFlowStatsResult(**raw_result)
101106

102107
def stream(
103108
self,

0 commit comments

Comments
 (0)