|
@@ -311,7 +311,7 @@ def buy_banking_license():
|
|
|
print('Banking license application access failed.')
|
|
|
|
|
|
|
|
|
-def summarize_bank_rules():
|
|
|
+def summarize_bank_rules(): # TODO rework this stuff, does not work like this in real life
|
|
|
variables = _global_variables()
|
|
|
banking_license_price = variables['banking_license_price']
|
|
|
marginal_lending_facility = variables['marginal_lending_facility']
|
|
@@ -376,8 +376,11 @@ def loans():
|
|
|
response = client_request('loans', {"session_id": connection.session_id})
|
|
|
success = 'data' in response
|
|
|
if success:
|
|
|
+ for row in response['data']:
|
|
|
+ row[-1] = f'{row[-1] * 100:.2f}%'
|
|
|
print(my_tabulate(response['data'],
|
|
|
headers=['Loan ID', 'Total amount', 'Remaining', 'Interest p.a.', ],
|
|
|
+ floatfmt='.2f',
|
|
|
tablefmt="pipe"))
|
|
|
else:
|
|
|
if 'error' in response:
|