mirror of
https://github.com/nikdoof/cynomap.git
synced 2026-01-30 14:08:14 +00:00
Removed API key
This commit is contained in:
5
app.py
5
app.py
@@ -4,11 +4,14 @@ from map import CynoMap
|
|||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
keyid = 0
|
||||||
|
vcode = ""
|
||||||
|
|
||||||
@app.route('/cynos.svg')
|
@app.route('/cynos.svg')
|
||||||
@app.route('/cynos-<range>.svg')
|
@app.route('/cynos-<range>.svg')
|
||||||
def cynos(range=13):
|
def cynos(range=13):
|
||||||
logging.info('Range %s' % range)
|
logging.info('Range %s' % range)
|
||||||
map = CynoMap(jumprange=float(range), keyid=525316, vcode="8jIZ4pjpLQOKQsUPY4cSpIy0Rtd4AcBh6HzOOzDC4qFlI0UO7dtJUVSkh7G7NhST").svg.standalone_xml()
|
map = CynoMap(jumprange=float(range), keyid=keyid, vcode=vcode).svg.standalone_xml()
|
||||||
return Response(mimetype='image/svg+xml', response=map)
|
return Response(mimetype='image/svg+xml', response=map)
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
|||||||
Reference in New Issue
Block a user