diff options
author | Shyamnath Premnadh <[email protected]> | 2025-03-12 16:59:01 +0100 |
---|---|---|
committer | Shyamnath Premnadh <[email protected]> | 2025-03-12 18:42:11 +0100 |
commit | 445e871e4624814600e554b22e3f467178c4f502 (patch) | |
tree | 16b7600712c2d20bd6151c2283c9a0af2b22bb4b /sources/pyside6/doc | |
parent | 42a6f976cbc35a4d0cadd9b71322f50793ac3c41 (diff) |
Docs: Fix the finance manager tutorial part 3
- A description was wrong along with the emphasized code. This is
now fixed.
Pick-to: 6.8
Task-number: PYSIDE-2850
Change-Id: I44f2b4c9a89496a96c974e78611b30f4dcec6cf6
Reviewed-by: Ece Cinucen <[email protected]>
Reviewed-by: Christian Tismer <[email protected]>
Diffstat (limited to 'sources/pyside6/doc')
-rw-r--r-- | sources/pyside6/doc/tutorials/finance_manager/part3/part3.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sources/pyside6/doc/tutorials/finance_manager/part3/part3.md b/sources/pyside6/doc/tutorials/finance_manager/part3/part3.md index eb15e2c82..be7b4fe8b 100644 --- a/sources/pyside6/doc/tutorials/finance_manager/part3/part3.md +++ b/sources/pyside6/doc/tutorials/finance_manager/part3/part3.md @@ -131,15 +131,15 @@ the database interaction code from Python and adds the REST API interaction code language: python caption: financemodel.py linenos: true -emphasize-lines: 39-61, 104-114 +emphasize-lines: 45-55, 92-103 --- ``` </details> -Two methods are overridden for the `FinanceModel` class - `fetchMore` and `canFetchMore`. These -methods are used to fetch more data from the REST API when the model is scrolled to the end. The data -is fetched in chunks of 10 entries at a time. Additionally, the `append` method is updated to send a -POST request to the REST API to add a new finance entry. +A new method `fetchAllData` is added to the `FinanceModel` class to fetch all the finance data from +the REST API. This method is called when the application starts to populate the model with the +existing finance data. Additionally, the `append` method is updated to send a POST request to the +REST API to add a new finance entry. ### Updating the Main Python File for the Frontend |