PandaArtStation commited on
Commit
d49c3dd
1 Parent(s): 986426b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -1
main.py CHANGED
@@ -1,10 +1,12 @@
1
  from flask import Flask, request, jsonify
2
  import requests
 
 
3
 
4
  app = Flask(__name__)
5
 
6
  WEATHER_API_URL = "http://api.openweathermap.org/data/2.5/weather"
7
- API_KEY = "apikey"
8
 
9
  @app.route('/weather', methods=['GET'])
10
  def get_weather():
 
1
  from flask import Flask, request, jsonify
2
  import requests
3
+ import os
4
+ os.envirion.get("key")
5
 
6
  app = Flask(__name__)
7
 
8
  WEATHER_API_URL = "http://api.openweathermap.org/data/2.5/weather"
9
+ API_KEY = "key"
10
 
11
  @app.route('/weather', methods=['GET'])
12
  def get_weather():