BraydenMoore commited on
Commit
e90b597
·
1 Parent(s): 423b1d8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -8
main.py CHANGED
@@ -38,16 +38,10 @@ def index():
38
  timezone = pytz.timezone(info['timezone'])
39
  time = dt.datetime.now(timezone)
40
  loc = info['loc']
 
41
  X, Y = latlon_to_pixel(info['loc'])
 
42
  return render_template('index.html', name=name, url=url, info=info, time=time, ip=ip, org=org, loc=loc, X=X, Y=Y)
43
 
44
- @app.route('/proxy/<path:url>')
45
- def proxy(url):
46
- try:
47
- req = requests.get(url, stream=True, timeout=10)
48
- return Response(req.iter_content(chunk_size=10 * 1024), content_type=req.headers['content-type'])
49
- except requests.exceptions.RequestException as e:
50
- return f"An error occurred: {e}"
51
-
52
  if __name__ == '__main__':
53
  app.run(host='0.0.0.0', port='7860', debug=True)
 
38
  timezone = pytz.timezone(info['timezone'])
39
  time = dt.datetime.now(timezone)
40
  loc = info['loc']
41
+ print(info)
42
  X, Y = latlon_to_pixel(info['loc'])
43
+ print(url)
44
  return render_template('index.html', name=name, url=url, info=info, time=time, ip=ip, org=org, loc=loc, X=X, Y=Y)
45
 
 
 
 
 
 
 
 
 
46
  if __name__ == '__main__':
47
  app.run(host='0.0.0.0', port='7860', debug=True)