Fix a bug in the "add book" script – date_read is always a datetime
authorAlex Chan <alex@alexwlchan.net>
Fri, 7 Feb 2020 19:29:33 +0000 (19:29 +0000)
committerAlex Chan <alex@alexwlchan.net>
Fri, 7 Feb 2020 19:29:33 +0000 (19:29 +0000)
commitade506ef67167f179fcb10c9d728f40aba6f9fc1
tree9a617b4a068d6be3c8b2a682f6bdb147daa8c0e5
parent8f2fa82038a2dea1fbc05b6b8e320146b4934e85
Fix a bug in the "add book" script – date_read is always a datetime

Previously you'd get a mixture of str() and datetime.date(), depending
on whether you selected "today/yesterday" or "another day".  The calling
code assumed a datetime.date(), so ensure this is correct.
scripts/add_book.py