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()
|
conn = database.connect()
|
||||||
try:
|
try:
|
||||||
bank_id = _bank_market_id(conn)
|
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)
|
on_hand = ledger.sats_on_hand(conn)
|
||||||
today = _today()
|
today = _today()
|
||||||
kroner = {
|
kroner = {
|
||||||
@@ -504,6 +504,8 @@ class SkuldHandler(BaseHTTPRequestHandler):
|
|||||||
for market in markets:
|
for market in markets:
|
||||||
market["sats"] = on_hand.get(market["id"], 0)
|
market["sats"] = on_hand.get(market["id"], 0)
|
||||||
market["kroner_ore"] = kroner[market["id"]]
|
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
|
return markets
|
||||||
|
|
||||||
def markets_create(self, params, query, body):
|
def markets_create(self, params, query, body):
|
||||||
|
|||||||
Reference in new issue
Block a user