summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 04:34:57 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 04:34:57 +0100
commit85fe3f50a034131fb58178d626b842a311d6e13b (patch)
tree73ac2319f0f486d93731455af33ef68408505259
parent2db9eac5e7ba91f42bbbad45a6fb16e5b817e014 (diff)
downloadkosten-85fe3f50a034131fb58178d626b842a311d6e13b.tar.gz
kosten-85fe3f50a034131fb58178d626b842a311d6e13b.tar.bz2
kosten-85fe3f50a034131fb58178d626b842a311d6e13b.zip
Do not show consts which already HAVE a next one
-rw-r--r--controller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller.py b/controller.py
index 4314d34..3d0ed1d 100644
--- a/controller.py
+++ b/controller.py
@@ -221,7 +221,8 @@ class ConstAdd:
),
form.Dropdown(
"prev",
- iter.chain([(-1, '')], ConstExpense.query.order_by(CE.description).values(CE.id, CE.description))
+ iter.chain([(-1, '')], ConstExpense.query.filter(ConstExpense.next == None).\
+ order_by(CE.description).values(CE.id, CE.description))
)
)
>-17/+20 2023-09-15Bump github.com/antonmedv/expr from 1.14.0 to 1.15.1dependabot[bot]2-8/+4 2023-09-15Bump actions/checkout from 3 to 4dependabot[bot]2-2/+2 2023-08-26Bump golang.org/x/net from 0.12.0 to 0.14.0dependabot[bot]2-6/+6 2023-08-26Bump github.com/antonmedv/expr from 1.12.6 to 1.14.0dependabot[bot]2-3/+3 2023-07-15Upgrade depsRené 'Necoro' Neumann2-15/+12 2023-06-13Version Changelog entryv1.7.0René 'Necoro' Neumann1-1/+4 2023-06-13Prepare v1.7.0René 'Necoro' Neumann2-2/+2 2023-06-05Improve changelogRené 'Necoro' Neumann1-2/+4 2023-06-05IMAP client does not need to know about max number of connectionsRené 'Necoro' Neumann2-19/+12 2023-06-04ChangelogRené 'Necoro' Neumann1-0/+4 2023-06-04Add new config option to set max number of IMAP connections.René 'Necoro' Neumann5-20/+26 2023-06-04Improve locking around IMAP connect/disconnect.René 'Necoro' Neumann1-10/+26 2023-05-20Bump golang.org/x/net from 0.9.0 to 0.10.0dependabot[bot]2-2/+3 2023-05-12Amend changelogRené 'Necoro' Neumann1-0/+1 2023-05-12Issue #95 Add warning when config can be read globally.René 'Necoro' Neumann1-0/+11 2023-05-11Issue #95: Change cache ownership.René 'Necoro' Neumann1-0/+4 2023-05-11Issue #95: Add hint about sensible access rights.René 'Necoro' Neumann1-0/+1 2023-04-23[workflow] Port changes also to releaseRené 'Necoro' Neumann1-6/+5 2023-04-23[workflow] Checkout before go setupRené 'Necoro' Neumann1-3/+3 2023-04-23[workflow] determine go version from go.modRené 'Necoro' Neumann1-3/+2 2023-04-23Improve test to also validate error messageRené 'Necoro' Neumann1-42/+39 2023-04-22Fix/improve testsRené 'Necoro' Neumann1-59/+104 2023-04-22Improve error handlingRené 'Necoro' Neumann1-1/+11 2023-04-21Fix workflow: '1.20' needs to be quotedRené 'Necoro' Neumann2-2/+2