Skip to content

Commit

Permalink
Merge pull request #7 from AdilusPrimus/feature/integrate-service-pro…
Browse files Browse the repository at this point in the history
…viders-as-plugins

Feature/integrate service providers as plugins
  • Loading branch information
BertoLRD authored Jun 1, 2023
2 parents 106bbf1 + fa0b33f commit 742b5b2
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions ImportCarRequests.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
makeCodeList='ROV',
modelCodeList='DEFEND',
marketExtension='true',
maxMileage=150000,
startYear=1980,
endYear=2013,
searchRadius=500,
maxPrice=100000,
maxMileage=500000,
startYear=1953,
endYear=2016,
searchRadius=10000,
maxPrice=500000,
sortBy='mileageASC',
numRecords=100,
numRecords=1000,
firstRecord=0,
style='Truck'
)
Expand All @@ -35,11 +35,16 @@

hasnav = "false"

counter=0

if 'listings' not in data:
print('NO MATCH FOUND', end='\n\r')
else:
for listing in data['listings']:

counter=counter+1
print(str(counter), end='\t')

print(str(listing['id']).expandtabs(16), end='\t')

if ('features' in listing):
Expand All @@ -53,8 +58,15 @@
else:
print('---', end='\t')

print(listing['year'], end='\t')

if('mileage' in listing['specifications']):
print(listing['specifications']['mileage']['value'].replace(',', ''), end=' ')

if(listing['specifications']['mileage']['value'] < "300000"):
print(listing['specifications']['mileage']['value'].replace(',', ''), end=' ')
else:
print('----------$', end='\t')

if(listing['specifications']['mileage']['label'] != 'miles'):
print("km".expandtabs(2), end='\t')
else:
Expand Down

0 comments on commit 742b5b2

Please sign in to comment.