mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-10-13 19:10:34 -04:00
temporary fix trustpilot score on services
This commit is contained in:
parent
5a0dc586ed
commit
368793631a
2 changed files with 20 additions and 2 deletions
|
@ -93,7 +93,12 @@ async def service(request, name=None):
|
|||
data = yaml.load(services)
|
||||
for service in data['services']:
|
||||
if service['name'].replace(' ', '').lower() == name:
|
||||
tpinfo = await get_trustpilot_info(service)
|
||||
try:
|
||||
tpinfo = await get_trustpilot_info(service)
|
||||
except:
|
||||
tpinfo = {
|
||||
"score": False
|
||||
}
|
||||
template = env.get_template('service.html')
|
||||
return html(template.render(date=date, service=service, tpinfo=tpinfo))
|
||||
return(f"{name} does not exist")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue