v1.0.1
This commit is contained in:
@@ -228,6 +228,8 @@ class Dashboard(ModelSQL, ModelView):
|
||||
return round(1/last_rate,6), round(1/prev_rate,6)
|
||||
|
||||
def get_tremor(self,name):
|
||||
Configuration = Pool().get('gr.configuration')
|
||||
config = Configuration.search(['id','>',0])[0]
|
||||
Pnl = Pool().get('valuation.valuation')
|
||||
pnls = Pnl.search(['id','>',0])
|
||||
pnl_amount = "{:,.0f}".format(round(sum([e.amount for e in pnls]),0))
|
||||
@@ -282,7 +284,8 @@ class Dashboard(ModelSQL, ModelView):
|
||||
move_cash = len(accs)
|
||||
|
||||
return (
|
||||
"https://srv413259.hstgr.cloud/dashboard/index.html?pnl_amount="
|
||||
config.dashboard +
|
||||
"/dashboard/index.html?pnl_amount="
|
||||
+ str(pnl_amount)
|
||||
+ "&exposure="
|
||||
+ str(exposure)
|
||||
|
||||
Reference in New Issue
Block a user