From e2bb2d4df960d51f47b7c3c28f310e3898ca6600 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 27 Jul 2019 23:09:16 +0300 Subject: [PATCH] Main function should be "main()" --- csv_metadata_quality/__main__.py | 2 +- csv_metadata_quality/app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/csv_metadata_quality/__main__.py b/csv_metadata_quality/__main__.py index 2e23872..2c273f7 100644 --- a/csv_metadata_quality/__main__.py +++ b/csv_metadata_quality/__main__.py @@ -1,4 +1,4 @@ from csv_metadata_quality import app if __name__ == '__main__': - app.run() + app.main() diff --git a/csv_metadata_quality/app.py b/csv_metadata_quality/app.py index c38ef64..13dbcc0 100644 --- a/csv_metadata_quality/app.py +++ b/csv_metadata_quality/app.py @@ -2,7 +2,7 @@ import csv_metadata_quality.check as check import csv_metadata_quality.fix as fix import pandas as pd -def run(): +def main(): # Read all fields as strings so dates don't get converted from 1998 to 1998.0 #df = pd.read_csv('/home/aorth/Downloads/2019-07-26-Bioversity-Migration.csv', dtype=str) #df = pd.read_csv('/tmp/quality.csv', dtype=str)