Skip to content

Commit dc61de6

Browse files
committed
Another fix for path #111.
1 parent 9a2acdf commit dc61de6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snapshot/render_flat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def make_haul_metadata_record(path: str) -> dict:
342342
filename = filename_with_path.split('.')[0]
343343
components = filename.split('_')
344344
return {
345-
'path': path,
345+
'loc': path,
346346
'year': int(components[0]),
347347
'survey': components[1],
348348
'haul': int(components[2])
@@ -523,7 +523,7 @@ def get_catch_records(haul: int) -> typing.Optional[typing.Iterable[dict]]:
523523
)
524524

525525
output_dict_with_loc: typing.Dict[str, typing.Union[str, int]] = output_dict # type: ignore
526-
output_dict_with_loc['path'] = output_loc
526+
output_dict_with_loc['loc'] = output_loc
527527
return output_dict_with_loc
528528

529529

0 commit comments

Comments
 (0)