diff --git a/db/refreshPageviewsFromDatasette.ts b/db/refreshPageviewsFromDatasette.ts index d328fe87013..4e485d89a8b 100644 --- a/db/refreshPageviewsFromDatasette.ts +++ b/db/refreshPageviewsFromDatasette.ts @@ -4,6 +4,9 @@ import Papa from "papaparse" import * as db from "./db.js" async function downloadAndInsertCSV(): Promise { + // Fetch CSV from private Datasette and insert it to a local MySQL. This function + // exists because `make refresh` uses MySQL dump that excludes analytics_pageviews + // table. That's why it's necessary to call `make refresh.pageviews` separately. const csvUrl = "http://datasette-private/owid/analytics_pageviews.csv?_size=max" const response = await fetch(csvUrl)