From 490f698f26d669f8e9e9a66f776eff5229332a8a Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Thu, 24 Mar 2022 01:48:36 +0300 Subject: [PATCH] cleanup old commented fs.writeFileSync calls --- .../platforms/deprecated/astralcodexten-fetch.js | 8 +------- .../platforms/deprecated/coupcast-fetch.js | 7 +------ .../platforms/deprecated/csetforetell-fetch.js | 3 --- src/backend/platforms/deprecated/elicit-fetch.js | 6 +----- .../platforms/deprecated/estimize-fetch.js | 3 --- .../platforms/deprecated/hypermind-fetch.js | 2 -- .../platforms/deprecated/ladbrokes-fetch.js | 6 +----- src/backend/platforms/deprecated/omen-fetch.js | 6 +----- .../platforms/deprecated/williamhill-fetch.js | 6 +----- src/backend/platforms/fantasyscotus-fetch.js | 6 +----- src/backend/platforms/foretold-fetch.js | 5 +---- src/backend/platforms/givewellopenphil-fetch.js | 2 -- src/backend/platforms/goodjudgment-fetch.js | 10 +++------- src/backend/platforms/goodjudmentopen-fetch.js | 2 -- src/backend/platforms/infer-fetch.js | 3 --- src/backend/platforms/kalshi-fetch.js | 13 +------------ src/backend/platforms/manifoldmarkets-fetch.js | 6 +----- src/backend/platforms/metaculus-fetch.js | 2 -- src/backend/platforms/polymarket-fetch.js | 13 +------------ src/backend/platforms/predictit-fetch.js | 8 ++------ src/backend/platforms/rootclaim-fetch.js | 15 ++------------- src/backend/platforms/smarkets-fetch.js | 6 +----- src/backend/platforms/wildeford-fetch.js | 2 -- 23 files changed, 19 insertions(+), 121 deletions(-) diff --git a/src/backend/platforms/deprecated/astralcodexten-fetch.js b/src/backend/platforms/deprecated/astralcodexten-fetch.js index a6b9ba5..5ff5992 100644 --- a/src/backend/platforms/deprecated/astralcodexten-fetch.js +++ b/src/backend/platforms/deprecated/astralcodexten-fetch.js @@ -1,8 +1,7 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../utils/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let graphQLendpoint = "https://api.foretold.io/graphql"; @@ -91,11 +90,6 @@ export async function astralcodexten() { results.push(result); }); } - /* - let string = JSON.stringify(results, null, 2) - console.log(JSON.stringify(results, null, 2)) - fs.writeFileSync('./data/astralcodexten-questions.json', string); - */ await databaseUpsert(results, "astralcodexten-questions"); // console.log(results) console.log("Done"); diff --git a/src/backend/platforms/deprecated/coupcast-fetch.js b/src/backend/platforms/deprecated/coupcast-fetch.js index 389ba4c..dec105f 100644 --- a/src/backend/platforms/deprecated/coupcast-fetch.js +++ b/src/backend/platforms/deprecated/coupcast-fetch.js @@ -1,11 +1,8 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; import Papa from "papaparse"; -import open from "open"; -import readline from "readline"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../utils/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let coupCastEndpoint = @@ -156,8 +153,6 @@ async function processArray(countryArray) { results.push(processedPrediction2); } } - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/elicit-questions.json', string); await databaseUpsert(results, "coupcast-questions"); // console.log(results) console.log("Done"); diff --git a/src/backend/platforms/deprecated/csetforetell-fetch.js b/src/backend/platforms/deprecated/csetforetell-fetch.js index 7f1ea07..f9276fc 100644 --- a/src/backend/platforms/deprecated/csetforetell-fetch.js +++ b/src/backend/platforms/deprecated/csetforetell-fetch.js @@ -261,9 +261,6 @@ async function csetforetell_inner(cookie) { ); } } - // let string = JSON.stringify(results,null, 2) - // fs.writeFileSync('./data/csetforetell-questions.json', string); - // console.log(results) if (results.length > 0) { await databaseUpsert(results, "csetforetell-questions"); } else { diff --git a/src/backend/platforms/deprecated/elicit-fetch.js b/src/backend/platforms/deprecated/elicit-fetch.js index 77ad9f7..79c6d91 100644 --- a/src/backend/platforms/deprecated/elicit-fetch.js +++ b/src/backend/platforms/deprecated/elicit-fetch.js @@ -1,11 +1,9 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; import Papa from "papaparse"; -import open from "open"; import readline from "readline"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../utils/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let elicitEndpoint = @@ -87,8 +85,6 @@ async function processArray(arrayQuestions) { results.push(standardObj); } } - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/elicit-questions.json', string); await databaseUpsert(results, "elicit-questions"); console.log("Done"); diff --git a/src/backend/platforms/deprecated/estimize-fetch.js b/src/backend/platforms/deprecated/estimize-fetch.js index 94503ae..dc100bb 100644 --- a/src/backend/platforms/deprecated/estimize-fetch.js +++ b/src/backend/platforms/deprecated/estimize-fetch.js @@ -30,9 +30,6 @@ export async function estimize() { results.push(standardObj); } } - // console.log(results) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/estimize-questions.json', string); await databaseUpsert(results, "estimize-questions"); } //estimize() diff --git a/src/backend/platforms/deprecated/hypermind-fetch.js b/src/backend/platforms/deprecated/hypermind-fetch.js index ad4364c..d3100e5 100644 --- a/src/backend/platforms/deprecated/hypermind-fetch.js +++ b/src/backend/platforms/deprecated/hypermind-fetch.js @@ -191,8 +191,6 @@ async function hypermind_inner(cookie) { // console.log(resultsTotal) // console.log(resultsTotalUnique) console.log(resultsTotalUnique.length, "results"); - // let string = JSON.stringify(resultsTotalUnique, null, 2) - // fs.writeFileSync('./data/hypermind-questions.json', string); await databaseUpsert(resultsTotalUnique, "hypermind-questions"); } //hypermind() diff --git a/src/backend/platforms/deprecated/ladbrokes-fetch.js b/src/backend/platforms/deprecated/ladbrokes-fetch.js index 172dbf4..c84528f 100644 --- a/src/backend/platforms/deprecated/ladbrokes-fetch.js +++ b/src/backend/platforms/deprecated/ladbrokes-fetch.js @@ -1,8 +1,7 @@ /* Imports */ import axios from "axios"; -import fs from "fs"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../utils/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let endpointPolitics = `https://ss-aka-ori.ladbrokes.com/openbet-ssviewer/Drilldown/2.31/EventToOutcomeForClass/302,301,300?simpleFilter=event.siteChannels:contains:M&simpleFilter=event.eventSortCode:intersects:TNMT,TR01,TR02,TR03,TR04,TR05,TR06,TR07,TR08,TR09,TR10,TR11,TR12,TR13,TR14,TR15,TR16,TR17,TR18,TR19,TR20&simpleFilter=event.suspendAtTime:greaterThan:${new Date().toISOString()}.000Z&limitRecords=outcome:1&limitRecords=market:1&translationLang=en&responseFormat=json&prune=event&prune=market`; @@ -137,9 +136,6 @@ let processResults = async (json) => { export async function ladbrokes() { let response = await fetchUrl(endpointPolitics); let results = await processResults(response); - // console.log(results) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/ladbrokes-questions.json', string); await databaseUpsert(results, "ladbrokes-questions"); console.log("Done"); } diff --git a/src/backend/platforms/deprecated/omen-fetch.js b/src/backend/platforms/deprecated/omen-fetch.js index b114dcd..d74bea0 100644 --- a/src/backend/platforms/deprecated/omen-fetch.js +++ b/src/backend/platforms/deprecated/omen-fetch.js @@ -1,8 +1,7 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import { calculateStars } from "../../utils/stars.js"; import { databaseUpsert } from "../../utils/database-wrapper.js"; +import { calculateStars } from "../../utils/stars.js"; /* Definitions */ let graphQLendpoint = "https://api.thegraph.com/subgraphs/name/protofire/omen"; @@ -92,9 +91,6 @@ async function fetch_all() { /* Body */ export async function omen() { let results = await fetch_all(); - // console.log(result) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/omen-questions.json', string); await databaseUpsert(results, "omen-questions"); console.log("Done"); } diff --git a/src/backend/platforms/deprecated/williamhill-fetch.js b/src/backend/platforms/deprecated/williamhill-fetch.js index 51b6421..0687f43 100644 --- a/src/backend/platforms/deprecated/williamhill-fetch.js +++ b/src/backend/platforms/deprecated/williamhill-fetch.js @@ -1,9 +1,7 @@ /* Imports */ import axios from "axios"; -import fs from "fs"; -import toMarkdown from "../utils/toMarkdown.js"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../utils/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let endpoint = "https://sports.williamhill.com/betting/en-gb/politics"; @@ -142,8 +140,6 @@ export async function williamhill() { "https://sports.williamhill.com/betting/en-gb/politics" ); let results = processResults(response); - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/williamhill-questions.json', string); await databaseUpsert(results, "williamhill-questions"); console.log(results.sort((a, b) => a.title > b.title)); console.log("Done"); diff --git a/src/backend/platforms/fantasyscotus-fetch.js b/src/backend/platforms/fantasyscotus-fetch.js index 90edcf4..6d6a70f 100644 --- a/src/backend/platforms/fantasyscotus-fetch.js +++ b/src/backend/platforms/fantasyscotus-fetch.js @@ -1,8 +1,7 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../database/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let unixtime = new Date().getTime(); @@ -115,9 +114,6 @@ async function processData(data) { export async function fantasyscotus() { let rawData = await fetchData(); let results = await processData(rawData); - //console.log(results) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/fantasyscotus-questions.json', string); await databaseUpsert({ contents: results, group: "fantasyscotus" }); console.log("Done"); } diff --git a/src/backend/platforms/foretold-fetch.js b/src/backend/platforms/foretold-fetch.js index a80cb57..556225a 100644 --- a/src/backend/platforms/foretold-fetch.js +++ b/src/backend/platforms/foretold-fetch.js @@ -1,8 +1,7 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../database/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let graphQLendpoint = "https://api.foretold.io/graphql"; @@ -99,8 +98,6 @@ export async function foretold() { results.push(result); }); } - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/foretold-questions.json', string); await databaseUpsert({ contents: results, group: "foretold" }); console.log("Done"); diff --git a/src/backend/platforms/givewellopenphil-fetch.js b/src/backend/platforms/givewellopenphil-fetch.js index 0301cfd..78ac08c 100644 --- a/src/backend/platforms/givewellopenphil-fetch.js +++ b/src/backend/platforms/givewellopenphil-fetch.js @@ -61,8 +61,6 @@ async function main1() { // console.log(result) results.push(result); } - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/givewell-questions-unprocessed.json', string); await databaseUpsert({ contents: results, group: "givewell-questions-unprocessed", diff --git a/src/backend/platforms/goodjudgment-fetch.js b/src/backend/platforms/goodjudgment-fetch.js index 9b59328..eaf208f 100644 --- a/src/backend/platforms/goodjudgment-fetch.js +++ b/src/backend/platforms/goodjudgment-fetch.js @@ -1,12 +1,10 @@ /* Imports */ import axios from "axios"; -import tunnel from "tunnel"; -import fs from "fs"; import { Tabletojson } from "tabletojson"; -import toMarkdown from "../utils/toMarkdown.js"; -import { calculateStars } from "../utils/stars.js"; -import { hash } from "../utils/hash.js"; +import tunnel from "tunnel"; import { databaseUpsert } from "../database/database-wrapper.js"; +import { hash } from "../utils/hash.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let endpoint = "https://goodjudgment.io/superforecasts/"; @@ -119,8 +117,6 @@ export async function goodjudgment() { } // console.log(results.slice(0,10)) let string = JSON.stringify(results, null, 2); - // fs.writeFileSync('./data/goodjudgment-questions.json', string); - // fs.writeFileSync('./goodjudgment-questions-test.json', string); console.log(results); await databaseUpsert({ contents: results, group: "goodjudgment" }); diff --git a/src/backend/platforms/goodjudmentopen-fetch.js b/src/backend/platforms/goodjudmentopen-fetch.js index 881c338..bb90226 100644 --- a/src/backend/platforms/goodjudmentopen-fetch.js +++ b/src/backend/platforms/goodjudmentopen-fetch.js @@ -218,8 +218,6 @@ async function goodjudgmentopen_inner(cookie) { ); } } - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/goodjudmentopen-questions.json', string); console.log(results); if (results.length > 0) { await databaseUpsert({ contents: results, group: "goodjudmentopen" }); diff --git a/src/backend/platforms/infer-fetch.js b/src/backend/platforms/infer-fetch.js index 2ea30c8..6039f71 100644 --- a/src/backend/platforms/infer-fetch.js +++ b/src/backend/platforms/infer-fetch.js @@ -265,9 +265,6 @@ async function infer_inner(cookie) { ); } } - // let string = JSON.stringify(results,null, 2) - // fs.writeFileSync('./data/infer-questions.json', string); - // console.log(results) if (results.length > 0) { await databaseUpsert({ contents: results, group: "infer" }); } else { diff --git a/src/backend/platforms/kalshi-fetch.js b/src/backend/platforms/kalshi-fetch.js index 00dfca9..d45205c 100644 --- a/src/backend/platforms/kalshi-fetch.js +++ b/src/backend/platforms/kalshi-fetch.js @@ -1,19 +1,11 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../database/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let jsonEndpoint = "https://trading-api.kalshi.com/v1/cached/markets/"; //"https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket"//"https://subgraph-backup.poly.market/subgraphs/name/TokenUnion/polymarket"//'https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket3' -/* Support functions -async function fetchAllContractInfo(){ // for info which the polymarket graphql API - let data = fs.readFileSync("./data/polymarket-contract-list.json") - let response = JSON.parse(data) - return response -} - */ async function fetchAllMarkets() { // for info which the polymarket graphql API let response = await axios @@ -80,9 +72,6 @@ async function processMarkets(markets) { export async function kalshi() { let markets = await fetchAllMarkets(); let results = await processMarkets(markets); // somehow needed - // console.log(results) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('polymarket-questions.json', string); await databaseUpsert({ contents: results, group: "kalshi" }); console.log("Done"); diff --git a/src/backend/platforms/manifoldmarkets-fetch.js b/src/backend/platforms/manifoldmarkets-fetch.js index cb7be00..6a4869f 100644 --- a/src/backend/platforms/manifoldmarkets-fetch.js +++ b/src/backend/platforms/manifoldmarkets-fetch.js @@ -1,8 +1,7 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../database/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let endpoint = "https://manifold.markets/api/v0/markets"; @@ -94,9 +93,6 @@ export async function manifoldmarkets() { let data = await fetchData(); let results = await processPredictions(data); // somehow needed showStatistics(results); - // console.log(results) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('polyprediction-questions.json', string); await databaseUpsert({ contents: results, group: "manifoldmarkets" }); console.log("Done"); diff --git a/src/backend/platforms/metaculus-fetch.js b/src/backend/platforms/metaculus-fetch.js index e62c4f4..1c36b54 100644 --- a/src/backend/platforms/metaculus-fetch.js +++ b/src/backend/platforms/metaculus-fetch.js @@ -189,8 +189,6 @@ export async function metaculus() { i = i + 1; } - // let string = JSON.stringify(all_questions, null, 2) - // fs.writeFileSync('./metaculus-questions.json', string); await databaseUpsert({ contents: all_questions, group: "metaculus" }); console.log("Done"); diff --git a/src/backend/platforms/polymarket-fetch.js b/src/backend/platforms/polymarket-fetch.js index d7566da..06a45fc 100644 --- a/src/backend/platforms/polymarket-fetch.js +++ b/src/backend/platforms/polymarket-fetch.js @@ -1,21 +1,13 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../database/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let graphQLendpoint = "https://api.thegraph.com/subgraphs/name/polymarket/matic-markets-5"; // "https://api.thegraph.com/subgraphs/name/polymarket/matic-markets-4"// "https://api.thegraph.com/subgraphs/name/tokenunion/polymarket-matic"//"https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket"//"https://subgraph-backup.poly.market/subgraphs/name/TokenUnion/polymarket"//'https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket3' let units = 10 ** 6; -/* Support functions -async function fetchAllContractInfo(){ // for info which the polymarket graphql API - let data = fs.readFileSync("./data/polymarket-contract-list.json") - let response = JSON.parse(data) - return response -} - */ async function fetchAllContractInfo() { // for info which the polymarket graphql API let response = await axios @@ -149,9 +141,6 @@ async function fetch_all() { /* Body */ export async function polymarket() { let results = await fetch_all(); - // console.log(results) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('polymarket-questions.json', string); await databaseUpsert({ contents: results, group: "polymarket" }); console.log("Done"); diff --git a/src/backend/platforms/predictit-fetch.js b/src/backend/platforms/predictit-fetch.js index 1f73a10..b0c9643 100644 --- a/src/backend/platforms/predictit-fetch.js +++ b/src/backend/platforms/predictit-fetch.js @@ -1,9 +1,8 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import toMarkdown from "../utils/toMarkdown.js"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../database/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; +import toMarkdown from "../utils/toMarkdown.js"; /* Support functions */ async function fetchmarkets() { @@ -107,9 +106,6 @@ export async function predictit() { // console.log(obj) results.push(obj); } - //console.log(results) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/predictit-questions.json', string); await databaseUpsert({ contents: results, group: "predictit" }); console.log("Done"); diff --git a/src/backend/platforms/rootclaim-fetch.js b/src/backend/platforms/rootclaim-fetch.js index f2ecca9..145e69f 100644 --- a/src/backend/platforms/rootclaim-fetch.js +++ b/src/backend/platforms/rootclaim-fetch.js @@ -1,21 +1,13 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import toMarkdown from "../utils/toMarkdown.js"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../database/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; +import toMarkdown from "../utils/toMarkdown.js"; /* Definitions */ let jsonEndpoint = "https://www.rootclaim.com/main_page_stories?number=100&offset=0"; //"https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket"//"https://subgraph-backup.poly.market/subgraphs/name/TokenUnion/polymarket"//'https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket3' -/* Support functions -async function fetchAllContractInfo(){ // for info which the polymarket graphql API - let data = fs.readFileSync("./data/polymarket-contract-list.json") - let response = JSON.parse(data) - return response -} - */ async function fetchAllRootclaims() { // for info which the polymarket graphql API let response = await axios @@ -66,9 +58,6 @@ async function fetchAndProcessData() { /* Body */ export async function rootclaim() { let results = await fetchAndProcessData(); - //console.log(JSON.stringify(results, null, 4)) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('rootclaim-questions.json', string); await databaseUpsert({ contents: results, group: "rootclaim" }); console.log("Done"); diff --git a/src/backend/platforms/smarkets-fetch.js b/src/backend/platforms/smarkets-fetch.js index c8f6b53..229dc14 100644 --- a/src/backend/platforms/smarkets-fetch.js +++ b/src/backend/platforms/smarkets-fetch.js @@ -1,9 +1,7 @@ /* Imports */ -import fs from "fs"; import axios from "axios"; -import toMarkdown from "../utils/toMarkdown.js"; -import { calculateStars } from "../utils/stars.js"; import { databaseUpsert } from "../database/database-wrapper.js"; +import { calculateStars } from "../utils/stars.js"; /* Definitions */ let htmlEndPointEntrance = "https://api.smarkets.com/v3/events/"; @@ -174,8 +172,6 @@ export async function smarkets() { } VERBOSE ? console.log(results) : empty(); - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('./data/smarkets-questions.json', string); await databaseUpsert({ contents: results, group: "smarkets" }); VERBOSE ? console.log(JSON.stringify(results, null, 4)) : empty(); VERBOSE ? console.dir(results, { depth: null }) : empty(); diff --git a/src/backend/platforms/wildeford-fetch.js b/src/backend/platforms/wildeford-fetch.js index 6e2225d..6a07d13 100644 --- a/src/backend/platforms/wildeford-fetch.js +++ b/src/backend/platforms/wildeford-fetch.js @@ -121,8 +121,6 @@ export async function wildeford_inner(google_api_key) { let predictions = await fetchGoogleDoc(google_api_key); let results = await processPredictions(predictions); // somehow needed // console.log(results.sort((a,b) => (a.title > b.title))) - // let string = JSON.stringify(results, null, 2) - // fs.writeFileSync('polyprediction-questions.json', string); await databaseUpsert({ contents: results, group: "wildeford" }); console.log("Done");