Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit fe54147

Browse files
aghinsapdxjohnny
authored andcommitted
source: csv: Load src_url as str
Fixes: #207
1 parent 457b604 commit fe54147

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929
- Develop service running one off operations correctly json-loads dict types.
3030
- Operations with configs can be run via the development service
3131
- JSON dumping numpy int\* and float\* caused crash on dump.
32+
- CSV source always loads `src_urls` as strings.
3233
### Removed
3334
- CLI command `operations` removed in favor of `dataflow run`
3435
- Duplicate dataflow diagram code from development service

dffml/source/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def read_csv(self, fd, open_file):
103103
del row[self.config.labelcol]
104104
index.setdefault(label, 0)
105105
# Grab src_url from row
106-
src_url = row.get(self.config.key, index[label])
106+
src_url = row.get(self.config.key, str(index[label]))
107107
if self.config.key in row:
108108
del row[self.config.key]
109109
else:

0 commit comments

Comments
 (0)