Commit 8efaa339261b07da0e1d4b9f37f3b0d40f0339b6

Remove duplicate route /info

  Duplicate route /info and corresponding method would not let the server run.
Removed them.
  • Diff rendering mode:
  • inline
  • side by side

alipi/alipi.py

432 return "empty"432 return "empty"
433433
434434
435@app.route('/info', methods=['GET'])
436def serve_info():
437 coll = g.db['post']
438 d = {}
439 cntr = 0
440 for i in coll.find({"about":unquote_plus(request.args['about']),"lang":request.args['lang']}):
441 i['_id'] = str(i['_id'])
442 d[cntr] = i
443 cntr+=1
444 response = jsonify(d)
445 response.headers['Access-Control-Allow-Origin'] = '*'
446 return response
447
448435
449import logging,os436import logging,os
450from logging import FileHandler437from logging import FileHandler