Skip to content

Commit

Permalink
style(fetcher): cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
philippdormann committed Apr 13, 2023
1 parent ab79396 commit 19758cb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/fetcher.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
require('dotenv').config();
// const request = require('request').defaults({ jar: true });
const cheerio = require('cheerio');
const axios = require('axios').default;
const { wrapper } = require('axios-cookiejar-support');
const { CookieJar } = require('tough-cookie');
const institutions = require('../institutions.json');
const { writeFileSync } = require('fs');
const jar = new CookieJar();
const client = wrapper(axios.create({ jar }));
// =========
Expand Down Expand Up @@ -82,7 +80,6 @@ async function getCacheItem(key) {
* @returns {string} (cache-backed) html content of mensaplan
*/
function getMensaPlanHTML({ p, e, kw = getCalendarWeek() }) {
console.log({ kw });
return new Promise(async function (resolve, reject) {
if (p && e) {
const f = institutions.find(function (ins) {
Expand Down

0 comments on commit 19758cb

Please sign in to comment.