dindizz commited on
Commit
2de2cfc
·
verified ·
1 Parent(s): cdccaa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import os
5
  # Function to get power breakdown history
6
  def get_power_breakdown_history(lat, lon):
7
  api_token = os.getenv('API_TOKEN') # Get API token from environment variables
8
- url = f'https://api.electricitymap.org/v3/power-breakdown/latest?lat={lat}&lon={lon}'
9
  headers = {
10
  'auth-token': api_token
11
  }
 
5
  # Function to get power breakdown history
6
  def get_power_breakdown_history(lat, lon):
7
  api_token = os.getenv('API_TOKEN') # Get API token from environment variables
8
+ url = f'https://api.electricitymap.org/v3/power-breakdown/history?lat={lat}&lon={lon}'
9
  headers = {
10
  'auth-token': api_token
11
  }