CSV Loader
This commit is contained in:
@ -34,14 +34,14 @@ def main():
|
|||||||
|
|
||||||
result = csv_loader.read_rows()
|
result = csv_loader.read_rows()
|
||||||
|
|
||||||
"Results:"
|
"Results:"
|
||||||
for row in result.rows:
|
for row in result.rows:
|
||||||
print(row)
|
print(row)
|
||||||
|
|
||||||
if result.has_errors():
|
if result.has_errors():
|
||||||
print("Errors:")
|
print("Errors:")
|
||||||
for error in result.errors:
|
for error in result.errors:
|
||||||
print(f"Line: {error.line_number}: {error.original_error}")
|
print(f"Line: {error.line_number}: {error.original_error}")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
@ -39,14 +39,14 @@ def main():
|
|||||||
|
|
||||||
result = csv_loader.read_rows()
|
result = csv_loader.read_rows()
|
||||||
|
|
||||||
"Results:"
|
"Results:"
|
||||||
for row in result.rows:
|
for row in result.rows:
|
||||||
print(row)
|
print(row)
|
||||||
|
|
||||||
if result.has_errors():
|
if result.has_errors():
|
||||||
print("Errors:")
|
print("Errors:")
|
||||||
for error in result.errors:
|
for error in result.errors:
|
||||||
print(f"Line: {error.line_number}: {error.original_error}")
|
print(f"Line: {error.line_number}: {error.original_error}")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
@ -51,14 +51,14 @@ def main():
|
|||||||
|
|
||||||
result = csv_loader.read_rows()
|
result = csv_loader.read_rows()
|
||||||
|
|
||||||
"Results:"
|
"Results:"
|
||||||
for row in result.rows:
|
for row in result.rows:
|
||||||
print(row)
|
print(row)
|
||||||
|
|
||||||
if result.has_errors():
|
if result.has_errors():
|
||||||
print("Errors:")
|
print("Errors:")
|
||||||
for error in result.errors:
|
for error in result.errors:
|
||||||
print(f"Line: {error.line_number}: {error.original_error}")
|
print(f"Line: {error.line_number}: {error.original_error}")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user