[chronojump-server] Revert "main.py tring to download Response with accents"
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump-server] Revert "main.py tring to download Response with accents"
- Date: Tue, 27 Jun 2017 03:57:34 +0000 (UTC)
commit 4de0ec16d4bbdc6a45f0b0edc095634acfd47a36
Author: Carles Pina i Estany <carles pina cat>
Date: Mon Jun 26 23:22:59 2017 -0400
Revert "main.py tring to download Response with accents"
This reverts commit e359f81375ed688cb2e668948d5068bcdf7bfe97.
main.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/main.py b/main.py
index fe78687..9f99b75 100755
--- a/main.py
+++ b/main.py
@@ -117,10 +117,7 @@ def getPersonByRFID():
assert len(people) >= 1
# TODO: handle if len(people) == 0 (rfid not found)
- return Response(json.dumps(people[0])) #This cannot download accents (latin chars)
-# return Response(json.dumps(people[0], ensure_ascii=False)) #download 'alternative' chars
-# return Response(json.dumps(people[0], ensure_ascii=False).encode('utf8')) #This crashes
-# return Response(json.dumps(people[0], ensure_ascii=False, encode('utf8'))) #does not compile
+ return Response(json.dumps(people[0]))
@app.route("/getTasks", methods=['POST'])
@auto.doc()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]