Skip to content

Commit 0d7b66e

Browse files
committed
#20 - Fix for default keys for core if not provided
1 parent e05d81c commit 0d7b66e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dwcahandler/dwca/core_dwca.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,9 @@ def extract_csv_content(self, csv_info: CsvFileType,
896896
def __get_default_core_key(core_sv_info: CsvFileType):
897897
"""Look for a column in a CSV file
898898
899-
:param csv_info: The CSV file
900-
:param col: The column name
901-
:return: Either column information or False for not found
899+
:param core_sv_info: The CSV file
900+
:return: default key if csv_info.keys not provided.
901+
Default key is eventID for EVENT type and occurrenceID for occurrence type
902902
"""
903903
if not core_sv_info.keys or len(core_sv_info.keys) == 0:
904904
if core_sv_info.type == MetaElementTypes.EVENT:

0 commit comments

Comments
 (0)