Add TODO comment

This commit is contained in:
D. Berge
2024-05-03 11:41:50 +02:00
parent 2086133109
commit 41e058ac64

View File

@@ -74,6 +74,7 @@ def from_file(path, spec):
elif "type" in spec and spec["type"] in specfields: elif "type" in spec and spec["type"] in specfields:
fields = specfields[spec["type"]] fields = specfields[spec["type"]]
else: else:
# TODO: Should default to looking for spec.format and doing a legacy import on it
return "Neither 'type' nor 'fields' given. I don't know how to import this fixed-width dataset." return "Neither 'type' nor 'fields' given. I don't know how to import this fixed-width dataset."
firstRow = spec.get("firstRow", 0) firstRow = spec.get("firstRow", 0)