biweeklybudget.flaskapp.notifications module¶
-
class
biweeklybudget.flaskapp.notifications.
NotificationsController
[source]¶ Bases:
object
-
static
budget_account_sum
(sess=None)[source]¶ Return the sum of current balances for all is_budget_source accounts.
Returns: Combined balance of all budget source accounts Return type: float
-
static
budget_account_unreconciled
(sess=None)[source]¶ Return the sum of unreconciled txns for all is_budget_source accounts.
Returns: Combined unreconciled amount of all budget source accounts Return type: float
-
static
get_notifications
()[source]¶ Return all notifications that should be displayed at the top of pages, as a list in the order they should appear. Each list item is a dict with keys “classes” and “content”, where classes is the string that should appear in the notification div’s “class” attribute, and content is the string content of the div.
-
static
num_stale_accounts
(sess=None)[source]¶ Return the number of accounts with stale data.
@TODO This is a hack because I just cannot figure out how to do this natively in SQLAlchemy.
Returns: count of accounts with stale data Return type: int
-
static
num_unreconciled_ofx
(sess=None)[source]¶ Return the number of unreconciled OFXTransactions.
Returns: number of unreconciled OFXTransactions Return type: int
-
static