From 17d8dfda510952bb02a7e3c01e2b4570b3eaafdd Mon Sep 17 00:00:00 2001 From: BrightDV <92821484+BrightDV@users.noreply.github.com> Date: Mon, 26 Aug 2024 17:58:11 +0200 Subject: [PATCH] [results] fix albon's qualifyings result; fix upcoming free practices --- lib/helpers/driver_result_item.dart | 2 +- lib/scraping/formula_one.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers/driver_result_item.dart b/lib/helpers/driver_result_item.dart index e66a3a6..7d907bc 100644 --- a/lib/helpers/driver_result_item.dart +++ b/lib/helpers/driver_result_item.dart @@ -422,7 +422,7 @@ class QualificationResultsItem extends StatelessWidget { right: 7, ), child: Text( - item.position == '666' ? 'DNF' : item.position, + item.position.startsWith('666') ? 'DNF' : item.position, style: const TextStyle( fontWeight: FontWeight.w600, ), diff --git a/lib/scraping/formula_one.dart b/lib/scraping/formula_one.dart index c59b8ca..9d775c0 100644 --- a/lib/scraping/formula_one.dart +++ b/lib/scraping/formula_one.dart @@ -527,7 +527,7 @@ class FormulaOneScraper { .get('server', defaultValue: defaultEndpoint) as String; if (endpoint != defaultEndpoint) { resultsUrl = Uri.parse( - '$endpoint/f1/en/results.html/${DateTime.now().year}/races/$circuitId/$circuitName.html', + '$endpoint/f1/en/results.html/${DateTime.now().year}/races/$circuitId/$circuitName/race-result.html', ); } else { resultsUrl = Uri.parse(