modernai commited on
Commit
a3eb43c
·
verified ·
1 Parent(s): ed69b7c

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 = os.getenv['LONG_PORTION'] * amount
9
- short_position = 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 = os.getenv(['LONG_PORTION']) * amount
9
+ short_position = os.getenv(['SHORT_PORTION'])* amount
10
 
11
  # Data for the bars
12
  positions = ['Long Position', 'Short Position']