View Single Post
Old 12-20-2010, 03:32 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kiwidude View Post
Next question related to this would be could someone point to the place(s) in the source code (since I haven't found it as an option) whereby we could set the publication date column to this when it is unknown? I'm not a fan of it setting the publication date to "today" for every new book - I would much rather it was set to "0000" and only set when an actual date is available in the metadata or you manually type one...
One instance (I think the only one) is in database2 in add_books, line 2363. Leave the pubdate as None.

Note that programatically you reset the pubdate by setting it to None. If you need to manipulate a None date (e.g., for sorting), use utils.date.UNDEFINED_DATE.
chaley is offline   Reply With Quote