Fix sold checks with transport URLs
This commit is contained in:
@@ -841,7 +841,7 @@ class PersistenceService:
|
||||
order_by = Car.last_seen_at.desc() if newest_first else Car.last_seen_at.asc()
|
||||
with self.session_scope() as session:
|
||||
result = session.execute(
|
||||
select(Car.id, Car.origin_url, Car.last_seen_at).where(
|
||||
select(Car.id, Car.origin_id, Car.last_seen_at).where(
|
||||
_origin_prefix_filter(Car.origin_id, prefixes),
|
||||
Car.is_sold == False, # noqa: E712
|
||||
).order_by(order_by).limit(limit)
|
||||
|
||||
Reference in New Issue
Block a user