Process dates in librarything import

This commit is contained in:
Mouse Reeve
2021-11-11 09:54:36 -08:00
parent 20baf9385d
commit 4d574a3536
2 changed files with 10 additions and 0 deletions

View File

@ -35,6 +35,7 @@ class Importer:
"date_started": ["date started", "started"],
"date_finished": ["date finished", "last date read", "date read", "finished"],
}
date_fields = ["date_added", "date_started", "date_finished"]
def create_job(self, user, csv_file, include_reviews, privacy):
"""check over a csv and creates a database entry for the job"""