Skip to content

Commit

Permalink
Fix broken reddit wiki links in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewmeyer committed Jan 30, 2019
1 parent 8770f79 commit d8b484e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scripts/cores.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const request = require('request-promise-native');
// Update status of each core from the subreddit core tracking page
// Parses two tables: One for active cores, and one for the status unknown cores, may
// add support for the inactive and lost cores at some point
const result = await request('https://www.reddit.com/r/spacex/wiki/cores');
const result = await request('https://old.reddit.com/r/spacex/wiki/cores');
const $ = cheerio.load(result);

const active = $('div.md:nth-child(2) > table:nth-child(14) > tbody:nth-child(2)').text();
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/upcoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const monthVague = /^[0-9]{4}\s(early|mid|late)\s([a-z]{3}|[a-z]{3,9})$/i;
});

// Grab subreddit wiki manifest
const result = await request('https://www.reddit.com/r/spacex/wiki/launches/manifest');
const result = await request('https://old.reddit.com/r/spacex/wiki/launches/manifest');
const $ = cheerio.load(result);

// Gives us all manifest table rows in a single array
Expand Down

0 comments on commit d8b484e

Please sign in to comment.