Daniel Varga commited on
Commit
7607114
1 Parent(s): 02d3062

minor html fix

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -485,8 +485,8 @@ def ui_refresh(solar_cell_num, bess_nominal_capacity, fixed_consumption):
485
 
486
  network, solar, bess = consumptions_in_mwh.sum(axis=0)
487
  html = "<table>\n"
488
- for column, column_name in zip((network, solar, bess), ("network", "solar", "BESS")):
489
- html += f"<tr><td>Yearly consumption satisfied by {column_name}:&nbsp;&nbsp;&nbsp;</td><td>{column:0.2f} MWh</td></tr>\n"
490
  html += "</table>"
491
 
492
  return (html, fig_monthly, fig1, fig2)
 
485
 
486
  network, solar, bess = consumptions_in_mwh.sum(axis=0)
487
  html = "<table>\n"
488
+ for column, column_name in zip((network, solar, bess), ("Network", "Solar directly", "Solar via BESS")):
489
+ html += f"<tr><td>Yearly consumption served by {column_name}:&nbsp;&nbsp;&nbsp;</td><td>{column:0.2f} MWh</td></tr>\n"
490
  html += "</table>"
491
 
492
  return (html, fig_monthly, fig1, fig2)