parent
cfff75764b
commit
976e7ddf79
13 changed files with 302 additions and 255 deletions
|
@ -7,7 +7,7 @@ from fedireads import models
|
|||
def sync_book_data():
|
||||
''' update books with any changes to their canonical source '''
|
||||
expiry = timezone.now() - timedelta(days=1)
|
||||
books = models.Book.objects.filter(
|
||||
books = models.Edition.objects.filter(
|
||||
sync=True,
|
||||
last_sync_date__lte=expiry
|
||||
).all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue