Add hashtag now works again.

Something due to string manipulations again
This commit is contained in:
Julien Lengrand-Lambert
2013-02-18 21:05:22 +01:00
parent 5e956862dc
commit 9b65e6e1fa

View File

@@ -82,7 +82,9 @@ def nb_trendy():
@app.route('/_add_hashtag')
def add_hashtag():
new_hash = request.args.get('new_hash')
hashtag = h.add_hashtag('#' + new_hash) # just to check we create the same hashtag
new_hash = "#" +new_hash
print new_hash
hashtag = h.add_hashtag(new_hash) # just to check we create the same hashtag
return jsonify(hash="Adding %s !" % (hashtag))