Mark the bank in the account list
This commit is contained in:
1 parent
2a9f4091a9
commit
2e70699b79
1 file changed
+3
-1
@@ -492,7 +492,7 @@ class SkuldHandler(BaseHTTPRequestHandler):
|
||||
conn = database.connect()
|
||||
try:
|
||||
bank_id = _bank_market_id(conn)
|
||||
markets = [row for row in _market_rows(conn) if row["id"] != bank_id]
|
||||
markets = _market_rows(conn)
|
||||
on_hand = ledger.sats_on_hand(conn)
|
||||
today = _today()
|
||||
kroner = {
|
||||
@@ -504,6 +504,8 @@ class SkuldHandler(BaseHTTPRequestHandler):
|
||||
for market in markets:
|
||||
market["sats"] = on_hand.get(market["id"], 0)
|
||||
market["kroner_ore"] = kroner[market["id"]]
|
||||
# The form offers the bank only where section 3.11 allows it.
|
||||
market["bank"] = market["id"] == bank_id
|
||||
return markets
|
||||
|
||||
def markets_create(self, params, query, body):
|
||||
|
||||
Reference in new issue
Block a user