File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/dali/plugin/input/csv Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ class InputPlugin(AbstractInputPlugin):
53
53
__IN_FIAT_FEE_INDEX : int = 11
54
54
__IN_NOTES_INDEX : int = 12
55
55
__IN_FIAT_TICKER : int = 13
56
+ __IN_LEN = __IN_FIAT_TICKER
56
57
57
58
__OUT_UNIQUE_ID_INDEX : int = 0
58
59
__OUT_TIMESTAMP_INDEX : int = 1
@@ -120,15 +121,15 @@ def _load_in_file(self, transactions: List[AbstractTransaction]) -> None:
120
121
raw_data : str = "," .join (line ).strip ()
121
122
if not header_found :
122
123
# let user know there is not enough columns
123
- if len (line ) - 1 < self .__IN_NOTES_INDEX :
124
- raise ValueError (f"Not enough columns: the { self .__in_csv_file } CSV must contain { self .__IN_NOTES_INDEX } columns." )
124
+ if len (line ) - 1 < self .__IN_LEN :
125
+ raise ValueError (f"Not enough columns: the { self .__in_csv_file } CSV must contain { self .__IN_LEN } columns." )
125
126
126
127
# Skip header line
127
128
header_found = True
128
129
self .__logger .debug ("Header: %s" , ";" .join (line ))
129
130
continue
130
131
131
- if raw_data .startswith ("," * self .__IN_NOTES_INDEX ):
132
+ if raw_data .startswith ("," * self .__IN_LEN ):
132
133
# Skip empty lines
133
134
continue
134
135
You can’t perform that action at this time.
0 commit comments