Created
April 15, 2020 23:40
-
-
Save p15martin/2143371c9aa6bbb45c6a93e4696d0697 to your computer and use it in GitHub Desktop.
Debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// debug | |
const page1 = {"transactions":[{"id":"9ebee3e75062477e868aa263b2c2e861","description":"CD DEPOSIT .INITIAL.","is_pending":false,"order":"1586992384719.732","amount":"1000.00","provider_amount":"1000.00","currency":"USD","classification":0,"merchant_name":"Cd Deposit Initial","provider_merchant_name":"Cd Deposit Initial","merchant_name_and_location":"","category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","provider_category":"Transfer","provider_category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","category":"Transfer","category__icon_url":"https://spendstatichosting.blob.core.windows.net/icons/icon-categories-default-new@3x.png","auto_categorized":false,"purchase_type":"special","transaction_date":"2020-04-14T00:00:00","provider_transaction_date":"2020-04-14T00:00:00","is_deleted":false,"posting_date":"2020-04-15T23:13:04.719779","created":"2020-04-15T23:13:04.723897","modified":"2020-04-15T23:13:04.723938","get_classification_display":"Unclassified","transaction_id":"dde8edf22aba478e9d98b9d522137b68","is_split_transaction":false,"location_address_line_1":"","location_address_line_2":"","location_state":"","location_city":"","location_zip":"","location_lat":"0","location_lng":"0","reported":false,"notes":"","tags":[],"financial_account_id":"114e8b592e3e4257b9f749a4a7554fff","financial_account__name":"Plaid CD","financial_account__account_number_mask":"2222","financial_account__enabled":true,"financial_institution__name":"American Express","financial_institution__id":"1bfff70f8b5542d8adceff6dfb64d8a7"},{"id":"e12ac91874e84e2e8aff685bc14910bf","description":"CD DEPOSIT .INITIAL.","is_pending":false,"order":"1586992397519.914","amount":"1000.00","provider_amount":"1000.00","currency":"USD","classification":0,"merchant_name":"Cd Deposit Initial","provider_merchant_name":"Cd Deposit Initial","merchant_name_and_location":"","category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","provider_category":"Transfer","provider_category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","category":"Transfer","category__icon_url":"https://spendstatichosting.blob.core.windows.net/icons/icon-categories-default-new@3x.png","auto_categorized":false,"purchase_type":"special","transaction_date":"2020-03-15T00:00:00","provider_transaction_date":"2020-03-15T00:00:00","is_deleted":false,"posting_date":"2020-04-15T23:13:17.519956","created":"2020-04-15T23:13:17.521273","modified":"2020-04-15T23:13:17.521302","get_classification_display":"Unclassified","transaction_id":"eaa40a489bde4599908d2bf688677273","is_split_transaction":false,"location_address_line_1":"","location_address_line_2":"","location_state":"","location_city":"","location_zip":"","location_lat":"0","location_lng":"0","reported":false,"notes":"","tags":[],"financial_account_id":"114e8b592e3e4257b9f749a4a7554fff","financial_account__name":"Plaid CD","financial_account__account_number_mask":"2222","financial_account__enabled":true,"financial_institution__name":"American Express","financial_institution__id":"1bfff70f8b5542d8adceff6dfb64d8a7"},{"id":"26e9d040b24a441ab21f672982814817","description":"CD DEPOSIT .INITIAL.","is_pending":false,"order":"1586992399851.181","amount":"1000.00","provider_amount":"1000.00","currency":"USD","classification":0,"merchant_name":"Cd Deposit Initial","provider_merchant_name":"Cd Deposit Initial","merchant_name_and_location":"","category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","provider_category":"Transfer","provider_category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","category":"Transfer","category__icon_url":"https://spendstatichosting.blob.core.windows.net/icons/icon-categories-default-new@3x.png","auto_categorized":false,"purchase_type":"special","transaction_date":"2020-02-14T00:00:00","provider_transaction_date":"2020-02-14T00:00:00","is_deleted":false,"posting_date":"2020-04-15T23:13:19.851218","created":"2020-04-15T23:13:19.852275","modified":"2020-04-15T23:13:19.852303","get_classification_display":"Unclassified","transaction_id":"61b31d2bcda34ed8baa1a1bc9ed8ea3c","is_split_transaction":false,"location_address_line_1":"","location_address_line_2":"","location_state":"","location_city":"","location_zip":"","location_lat":"0","location_lng":"0","reported":false,"notes":"","tags":[],"financial_account_id":"114e8b592e3e4257b9f749a4a7554fff","financial_account__name":"Plaid CD","financial_account__account_number_mask":"2222","financial_account__enabled":true,"financial_institution__name":"American Express","financial_institution__id":"1bfff70f8b5542d8adceff6dfb64d8a7"},{"id":"505f47594c1c48bdbc57d1c3cf58f978","description":"CD DEPOSIT .INITIAL.","is_pending":false,"order":"1586992401738.766","amount":"1000.00","provider_amount":"1000.00","currency":"USD","classification":0,"merchant_name":"Cd Deposit Initial","provider_merchant_name":"Cd Deposit Initial","merchant_name_and_location":"","category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","provider_category":"Transfer","provider_category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","category":"Transfer","category__icon_url":"https://spendstatichosting.blob.core.windows.net/icons/icon-categories-default-new@3x.png","auto_categorized":false,"purchase_type":"special","transaction_date":"2020-01-15T00:00:00","provider_transaction_date":"2020-01-15T00:00:00","is_deleted":false,"posting_date":"2020-04-15T23:13:21.738836","created":"2020-04-15T23:13:21.740429","modified":"2020-04-15T23:13:21.740472","get_classification_display":"Unclassified","transaction_id":"1a25614518c841bda782483ecfef4053","is_split_transaction":false,"location_address_line_1":"","location_address_line_2":"","location_state":"","location_city":"","location_zip":"","location_lat":"0","location_lng":"0","reported":false,"notes":"","tags":[],"financial_account_id":"114e8b592e3e4257b9f749a4a7554fff","financial_account__name":"Plaid CD","financial_account__account_number_mask":"2222","financial_account__enabled":true,"financial_institution__name":"American Express","financial_institution__id":"1bfff70f8b5542d8adceff6dfb64d8a7"},{"id":"4ede3606fa5249ce8f5bce23697a20f1","description":"CD DEPOSIT .INITIAL.","is_pending":false,"order":"1586992403770.935","amount":"1000.00","provider_amount":"1000.00","currency":"USD","classification":0,"merchant_name":"Cd Deposit Initial","provider_merchant_name":"Cd Deposit Initial","merchant_name_and_location":"","category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","provider_category":"Transfer","provider_category_id":"1ce8af1d77aa4c7eaf8ccb1b9eadbf76","category":"Transfer","category__icon_url":"https://spendstatichosting.blob.core.windows.net/icons/icon-categories-default-new@3x.png","auto_categorized":false,"purchase_type":"special","transaction_date":"2019-12-16T00:00:00","provider_transaction_date":"2019-12-16T00:00:00","is_deleted":false,"posting_date":"2020-04-15T23:13:23.770975","created":"2020-04-15T23:13:23.772069","modified":"2020-04-15T23:13:23.772097","get_classification_display":"Unclassified","transaction_id":"273b9710a0f741e0b2ae475522e225d0","is_split_transaction":false,"location_address_line_1":"","location_address_line_2":"","location_state":"","location_city":"","location_zip":"","location_lat":"0","location_lng":"0","reported":false,"notes":"","tags":[],"financial_account_id":"114e8b592e3e4257b9f749a4a7554fff","financial_account__name":"Plaid CD","financial_account__account_number_mask":"2222","financial_account__enabled":true,"financial_institution__name":"American Express","financial_institution__id":"1bfff70f8b5542d8adceff6dfb64d8a7"}],"progressCount":5,"totalCount":5} | |
const pages = 10 | |
transactionCount = pages * page1.transactions.length | |
this.#transactions = [] | |
for (let i = 0; i < pages; i++) { | |
this.#transactions.push(page1) | |
} | |
console.debug(`***** DEBUG transactionCount: ${transactionCount}, page1: ${page1.transactions.length} ******`) | |
/// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment