Skip to content

Commit ac6b060

Browse files
MDE/PKFE-16 resolved back-end bug
1 parent 3db77f0 commit ac6b060

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/back-end/src/routes/workspace_aggregate_route.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,9 @@ def get_workspace_aggregate(relative_path):
252252
),
253253
404,
254254
)
255-
256-
header_index = header.index(field)
257-
255+
258256
for row in reader:
259-
value = row[header_index]
257+
value = row[header.index(field)]
260258
if action == "cnt":
261259
if value:
262260
result += float(1)

0 commit comments

Comments
 (0)