fix argument error in tasks

This commit is contained in:
Viktor Barzin 2025-07-26 10:38:51 +00:00
parent 272d54d014
commit 206471cee8
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -48,7 +48,6 @@ async def dump_listings_full(self: Task, parameters: QueryParameters) -> list[Li
def setup_periodic_tasks(sender, **kwargs):
sender.add_periodic_task(
3600 * 24, # Daily updates
name='Daily dump of interesting rent listings',
dump_listings_task.s(
QueryParameters(
listing_type=ListingType.RENT,
@ -58,4 +57,5 @@ def setup_periodic_tasks(sender, **kwargs):
max_price=4000,
).model_dump_json()
),
name='Daily dump of interesting rent listings',
)