service.py

changeset 61
0c9b09f694f3
parent 55
0f1d046b3f78
child 63
20865458d936
--- a/service.py	Fri Sep 15 22:43:33 2017 +0300
+++ b/service.py	Sun Sep 17 20:47:14 2017 +0300
@@ -59,7 +59,7 @@
 			if request.args.get(language_name) is not None:
 				return language_name
 		else:
-			return 'fi'
+			return request.accept_languages.best_match(tr.languages)
 
 def sign(schedule_entry):
 	from math import ceil

mercurial