Commit 2a9c18f85d26e577a91e284a69115fa6305c8b68

  • avatar
  • arvind
  • Fri Feb 08 10:58:41 IST 2013
Indentation fixes.
fetch.py
(5 / 5)
  
2727 f = open(filename, 'r')
2828 except:
2929 f = open('static/test.json', 'r')
30 buf = f.read()
31 f.close()
32 return render_template('editor.html', json = buf)
30 buf = f.read()
31 f.close()
32 return render_template('editor.html', json = buf)
3333
3434@app.route('/saveJSON', methods=['POST'])
3535def saveJSON():
5858 ls = glob.glob(path)
5959 def sanitize(i):
6060 return i.split('/')[-1]
61 ls = map(sanitize, ls)
62 return render_template('history.html', ls=ls)
61 ls = map(sanitize, ls)
62 return render_template('history.html', ls=ls)
6363
6464
6565if __name__ == "__main__":