Revised the documentation.

This commit is contained in:
依瑪貓 2022-12-08 01:06:15 +08:00
parent 72b9555e29
commit 1d16b250d8
2 changed files with 7 additions and 11 deletions

View File

@ -80,10 +80,9 @@ class ReportUrl:
Args: Args:
namespace: The namespace of the current application. namespace: The namespace of the current application.
cash: The currently-specified account of the cash: The currently-specified account of the cash account or cash
cash account or cash summary. summary.
ledger: The currently-specified account of the ledger: The currently-specified account of the ledger or leger summary.
ledger or leger summary.
period: The currently-specified period. period: The currently-specified period.
""" """
@ -145,9 +144,8 @@ class DataFiller:
"""Adds accounts. """Adds accounts.
Args: Args:
accounts (tuple[tuple[any]]): Tuples of accounts: Tuples of (code, English, Traditional Chinese, Simplified
(code, English, Traditional Chinese, Simplified Chinese) Chinese) of the accounts.
of the accounts.
""" """
for data in accounts: for data in accounts:
code = data[0] code = data[0]
@ -167,8 +165,7 @@ class DataFiller:
"""Adds a transfer transaction. """Adds a transfer transaction.
Args: Args:
date: The date, or the number of days from date: The date, or the number of days from today.
today.
debit: Tuples of (account, summary, amount) of the debit records. debit: Tuples of (account, summary, amount) of the debit records.
credit: Tuples of (account, summary, amount) of the credit records. credit: Tuples of (account, summary, amount) of the credit records.
""" """

View File

@ -429,8 +429,7 @@ class Pagination:
url (str): The link URL, or for a non-link slot. url (str): The link URL, or for a non-link slot.
title (str): The title of the link. title (str): The title of the link.
is_active (bool): Whether this link is currently active. is_active (bool): Whether this link is currently active.
is_small_screen (bool): Whether this link is for small is_small_screen (bool): Whether this link is for small screens.
screens
""" """
def __int__(self): def __int__(self):
self.url = None self.url = None