Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
shayki5 committed Sep 27, 2023
1 parent 885214e commit 4393a5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
-e AZURE_APP_KEY
$IMAGE_NAME
env:
DEBUG: ""
DEBUG: "moneyman:*"
TZ: "Asia/Jerusalem"
DAYS_BACK: ${{ github.event.inputs.daysBack }}
WORKSHEET_NAME: ${{ github.event.inputs.worksheetName }}
Expand All @@ -86,4 +86,4 @@ jobs:
ADE_INGEST_URI: ${{ secrets.ADE_INGEST_URI }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_APP_ID: ${{ secrets.AZURE_APP_ID }}
AZURE_APP_KEY: ${{ secrets.AZURE_APP_KEY }}
AZURE_APP_KEY: ${{ secrets.AZURE_APP_KEY }}
34 changes: 0 additions & 34 deletions src/storage/sheets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,40 +121,6 @@ export class GoogleSheetsStorage implements TransactionStorage {
logger(`${this.existingTransactionsHashes.size} hashes loaded`);
}

// private async initDocAndSheet() {
// const doc = new GoogleSpreadsheet(GOOGLE_SHEET_ID);

// const {
// GOOGLE_SERVICE_ACCOUNT_EMAIL: client_email,
// GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY: private_key_base_64_encoded,
// } = process.env;

// const private_key_decoded = Buffer.from(
// private_key_base_64_encoded || "",
// "base64"
// )
// .toString("utf8")
// .replace(`"`, "");

// if (client_email && private_key_decoded) {
// logger("Using ServiceAccountAuth");
// await doc.useServiceAccountAuth({
// client_email,
// private_key: private_key_decoded,
// });
// }

// await doc.loadInfo();

// if (!(worksheetName in doc.sheetsByTitle)) {
// logger("Creating new sheet");
// const sheet = await doc.addSheet({ title: worksheetName });
// await sheet.setHeaderRow(GoogleSheetsStorage.FileHeaders);
// }

// this.sheet = doc.sheetsByTitle[worksheetName];
// }

private async initDocAndSheet() {
const {
GOOGLE_SERVICE_ACCOUNT_EMAIL: client_email,
Expand Down

0 comments on commit 4393a5a

Please sign in to comment.