Skip to content

Commit

Permalink
Fix quotes in more places for fimfic stats
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkRose committed Mar 11, 2024
1 parent 25f8c8c commit 7e83d92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fimficstats/fimfic-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function mane() {
const request_interval = 1000;

// Loop over IDs to scrape data.
for (let id = 551751; id <= 553110; id++) {
for (let id = 1; id <= 2000; id++) {
const start_time = Date.now();
let status = "unknown";

Expand Down Expand Up @@ -88,7 +88,7 @@ async function mane() {
db.query(
sql.insert_author(
Number(api.data.relationships.author.data.id),
api.included[0].attributes.name,
format_quote_string(api.included[0].attributes.name),
new Date(api.included[0].attributes.date_joined).getTime() / 1000,
api.included[0].attributes.num_followers,
api.included[0].attributes.num_blog_posts,
Expand Down Expand Up @@ -135,7 +135,7 @@ async function mane() {
.find("li")
.each(function () {
const [site, count] = document(this).text().split(": ");
referrals[site] = Number(count);
referrals[site] = Number(count.replace(/\D/g, ""));
});

db.query(
Expand Down

0 comments on commit 7e83d92

Please sign in to comment.