mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-05-25 08:59:51 +02:00
feat: allow single transactions to be hidden from summaries
Control is done via the dropdown menu on a transaction item Transfers are hidden by default fix #274
This commit is contained in:
@@ -91,6 +91,8 @@ def get_transactions(request, include_unpaid=True, include_silent=False):
|
||||
transactions = transactions.filter(is_paid=True)
|
||||
|
||||
if not include_silent:
|
||||
transactions = transactions.exclude(Q(category__mute=True) & ~Q(category=None))
|
||||
transactions = transactions.exclude(
|
||||
Q(Q(category__mute=True) & ~Q(category=None)) | Q(mute=True)
|
||||
)
|
||||
|
||||
return transactions
|
||||
|
||||
Reference in New Issue
Block a user