modernai commited on
Commit
3d2e06f
·
verified ·
1 Parent(s): 330459a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ import os
5
 
6
  def create_portfolio_graph(amount):
7
  # Calculate positions based on the provided amount
8
- long_position = float(os.getenv(['LONG_PORTION'])) * amount
9
- short_position = float(os.getenv(['SHORT_PORTION'])) * amount
10
 
11
  # Data for the bars
12
  positions = ['Long Position', 'Short Position']
 
5
 
6
  def create_portfolio_graph(amount):
7
  # Calculate positions based on the provided amount
8
+ long_position = float(os.getenv('LONG_PORTION')) * amount
9
+ short_position = float(os.getenv('SHORT_PORTION')) * amount
10
 
11
  # Data for the bars
12
  positions = ['Long Position', 'Short Position']