Skip to content

Commit

Permalink
feat: May 2022 update (andipaetzold#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 13, 2022
1 parent 22fdbed commit d115d33
Show file tree
Hide file tree
Showing 12 changed files with 301 additions and 20 deletions.
15 changes: 15 additions & 0 deletions data/routes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1766,6 +1766,7 @@ export const routes = [
id: 5745690,
slug: "downdown-titans",
segments: [],
experience: 490,
},
{
id: 910684583,
Expand All @@ -1780,13 +1781,15 @@ export const routes = [
id: 1082034232,
slug: "mayan-bridge-loop",
segments: [],
experience: 105,
stravaSegmentId: 26774640,
zwiftInsiderUrl: "https://zwiftinsider.com/mayan-bridge-loop",
},
{
id: 1993374659,
slug: "handful-of-gravel",
segments: [],
experience: 125,
},
{
id: 2627606248,
Expand All @@ -1799,6 +1802,7 @@ export const routes = [
id: 2708527018,
slug: "handful-of-gravel-run",
segments: [],
experience: 125,
},
{
id: 2746475460,
Expand All @@ -1809,6 +1813,7 @@ export const routes = [
"titans-grove-kom-rev",
"fuego-flats",
],
experience: 134,
stravaSegmentId: 22914116,
zwiftInsiderUrl: "https://zwiftinsider.com/eastern-eight",
},
Expand All @@ -1831,14 +1836,24 @@ export const routes = [
id: 3453194200,
slug: "triple-flat-loops",
segments: ["watopia-sprint-rev", "fuego-flats", "watopia-sprint"],
experience: 680,
stravaSegmentId: 20453276,
zwiftInsiderUrl: "https://zwiftinsider.com/triple-flat-loops",
},
{
id: 3573087582,
slug: "italian-villas-circuit",
segments: ["watopia-sprint"],
experience: 40,
stravaSegmentId: 26792130,
zwiftInsiderUrl: "https://zwiftinsider.com/italian-villas-sprint-circuit",
},
{
id: 1988847319,
slug: "splash-and-dash",
},
{
id: 4232726854,
slug: "surfin-safari",
},
];
7 changes: 4 additions & 3 deletions scripts/helpers/update-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ export async function updateData() {
supportsTT: item.supportsTimeTrialMode === "1",
supportsMeetups: item.blockedForMeetups === "0",
sports: item.sports === "2" ? ["running"] : ["running", "cycling"],
experience: item.xp
? +item.xp
: manualRouteData?.experience ?? undefined,
experience:
item.xp && +item.xp > 10
? +item.xp
: manualRouteData?.experience ?? undefined,
stravaSegmentId: manualRouteData?.stravaSegmentId ?? undefined,
stravaSegmentUrl: manualRouteData?.stravaSegmentId
? `https://www.strava.com/segments/${manualRouteData.stravaSegmentId}`
Expand Down
10 changes: 10 additions & 0 deletions src/achievements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,5 +891,15 @@ export const achievements: ReadonlyArray<Achievement> = [
"id": 184,
"name": "HANDFUL OF GRAVEL (RUNNING)",
"imageName": "RouteComplete"
},
{
"id": 185,
"name": "SURFIN' SAFARI",
"imageName": "RouteComplete"
},
{
"id": 186,
"name": "SPLASH AND DASH",
"imageName": "RouteComplete"
}
];
12 changes: 12 additions & 0 deletions src/bikeFrames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export const bikeFrames: ReadonlyArray<BikeFrame> = [
"modelYear": 2018,
"isTT": true
},
{
"id": 11394848,
"name": "Felt Felt TT 2021",
"modelYear": 2021,
"isTT": true
},
{
"id": 57842352,
"name": "Liv LivLangma2021",
Expand Down Expand Up @@ -307,6 +313,12 @@ export const bikeFrames: ReadonlyArray<BikeFrame> = [
"modelYear": 2021,
"isTT": false
},
{
"id": 2002850191,
"name": "Scott ScottPlasma2022",
"modelYear": 2022,
"isTT": true
},
{
"id": 2005280203,
"name": "Cannondale System Six",
Expand Down
10 changes: 10 additions & 0 deletions src/headgears.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export const headgears: ReadonlyArray<Headgear> = [
"name": "Giro Vanquish",
"imageName": "GiroVanquish"
},
{
"id": 322596379,
"name": "2022 ZA Tri Team Design",
"imageName": "SpecializedZATri2022"
},
{
"id": 407446488,
"name": "Tour de Zwift 2022 Ride Cap",
Expand All @@ -47,6 +52,11 @@ export const headgears: ReadonlyArray<Headgear> = [
"name": "SworksTT2020 Helmet",
"imageName": "SworksTT2020"
},
{
"id": 518828917,
"name": "2022 adidas RFTO",
"imageName": "RunnerCapRFTO2022_thumb"
},
{
"id": 521965311,
"name": "Giro Eclipse Bike Exchange",
Expand Down
Loading

0 comments on commit d115d33

Please sign in to comment.