From cd7448059f2f7c4abcee038893edc756fdedb221 Mon Sep 17 00:00:00 2001 From: Marigold Date: Wed, 10 Jan 2024 12:03:47 +0100 Subject: [PATCH] :scroll: update docs for make refresh.pageviews --- db/refreshPageviewsFromDatasette.ts | 3 +++ 1 file changed, 3 insertions(+) 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)