Skip to content

Commit

Permalink
[results] fix albon's qualifyings result; fix upcoming free practices
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightDV committed Aug 26, 2024
1 parent cffd644 commit 17d8dfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/helpers/driver_result_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/scraping/formula_one.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 17d8dfd

Please sign in to comment.