From 6b94f31e04cdf288d25aebbceebc16db71c6e7f9 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sat, 6 Jan 2024 15:47:24 +0800 Subject: [PATCH 1/2] Fix additional entry in transaction report pdf --- .../TransactionReportPDF/TransactionReportPDF.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Components/TransactionReportPDF/TransactionReportPDF.tsx b/src/Components/TransactionReportPDF/TransactionReportPDF.tsx index f18627f..2c6889c 100644 --- a/src/Components/TransactionReportPDF/TransactionReportPDF.tsx +++ b/src/Components/TransactionReportPDF/TransactionReportPDF.tsx @@ -72,20 +72,6 @@ export default function TransactionReportPDF(props: props) { ).length } - - Rejected Transactions:{" "} - { - transactions_today.filter( - (transaction) => transaction.transaction_status == "Rejected" - ).length - } - Date: Sat, 6 Jan 2024 15:51:48 +0800 Subject: [PATCH 2/2] update woodpecker.yml to only run on master branch --- .woodpecker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 62a9d7b..82bee88 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -12,4 +12,6 @@ steps: - npm run build - ssh root@10.0.10.4 'rm -rf /mnt/sda1/files/projects/borrowing_tracker_frontend/*' - scp -r dist/* root@10.0.10.4:/mnt/sda1/files/projects/borrowing_tracker_frontend + when: + - branch: master secrets: [SSH_KEY]