Skip to content

Commit

Permalink
Syssy-24 programme into archive and index page import sort
Browse files Browse the repository at this point in the history
  • Loading branch information
ebetoi committed Jan 8, 2025
1 parent 0a6bb58 commit 8ed2778
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions archiver/archiveCrawlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import { parseSheetToShowList } from '@/scripts/google/client';
import { getSheet, GoogleConfigSheets } from '@/scripts/google/google';

export const archiveOldShowlists = async () => {

const sheetConfigs = [
{ name: '2024-syssy', showStartTime: '2024-10-29T12:00:00', config: { apiKey: process.env.GA_API_KEY, spreadsheetId: '1gPIjpY_JWlDYXmMboHds3bEWerU9nDd4o0pFeek9PKM', range: 'Ohjelmakartta!A3:J35' } }
//{ name: '2024-wappu', showStartTime: '2024-04-21T12:00:00', config: { apiKey: process.env.GA_API_KEY, spreadsheetId: '17AnknBC5fzo8ZS3Wxc1HExm_qVV4kEXkgQOUv80lbGg', range: 'Ohjelmakartta!A3:J106' } },
// { name: '2023-wappu', showStartTime: '2023-04-20T12:00:00', config: { apiKey: process.env.GA_API_KEY, spreadsheetId: '1eHDK-MYm6B3BH8rewQr04-pd2IK4iFwsPY5HKkrVNJg', range: 'Ohjelmakartta!A3:J5' } },
// { name: '2023-syssy', showStartTime: '2023-04-20T12:00:00', config: { apiKey: process.env.GA_API_KEY, spreadsheetId: '18UqWSStevUGa_rdIi9zF6NuCzbZc7H1ZnVMaIObV_Cg', range: 'Ohjelmakartta!A3:J32' } },
];
for(const { config, name, showStartTime } of sheetConfigs) {
await archiveGogleSheet(config, name, showStartTime);
}
// NOTE: Uncomment for archiving google sheet data
// const sheetConfigs = [
// { name: '2024-syssy', showStartTime: '2024-10-29T12:00:00', config: { apiKey: process.env.GA_API_KEY, spreadsheetId: '1gPIjpY_JWlDYXmMboHds3bEWerU9nDd4o0pFeek9PKM', range: 'Ohjelmakartta!A3:J35' } }
// { name: '2024-wappu', showStartTime: '2024-04-21T12:00:00', config: { apiKey: process.env.GA_API_KEY, spreadsheetId: '17AnknBC5fzo8ZS3Wxc1HExm_qVV4kEXkgQOUv80lbGg', range: 'Ohjelmakartta!A3:J106' } },
// { name: '2023-wappu', showStartTime: '2023-04-20T12:00:00', config: { apiKey: process.env.GA_API_KEY, spreadsheetId: '1eHDK-MYm6B3BH8rewQr04-pd2IK4iFwsPY5HKkrVNJg', range: 'Ohjelmakartta!A3:J5' } },
// { name: '2023-syssy', showStartTime: '2023-04-20T12:00:00', config: { apiKey: process.env.GA_API_KEY, spreadsheetId: '18UqWSStevUGa_rdIi9zF6NuCzbZc7H1ZnVMaIObV_Cg', range: 'Ohjelmakartta!A3:J32' } },
// ];
// for(const { config, name, showStartTime } of sheetConfigs) {
// await archiveGogleSheet(config, name, showStartTime);
// }
};

/** Helpers */
Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GetStaticProps, NextPage } from 'next';
import Head from 'next/head';

import Image from 'next/image';

import Calendar from '@/components/calendar';
import Footer from '@/components/footer';
import Hero from '@/components/hero';
Expand Down

0 comments on commit 8ed2778

Please sign in to comment.