service.py

changeset 100
9b5e6b5e5e0b
parent 99
0726eb9bc9d1
child 101
70d16b5e14ca
--- a/service.py	Fri May 04 21:43:46 2018 +0300
+++ b/service.py	Fri May 04 21:44:27 2018 +0300
@@ -370,7 +370,7 @@
 		return length or len(route)
 	from math import inf
 	def route_limit(route):
-		return (route in night_routes) and 20 else 6
+		return (route in night_routes) and 20 or 6
 	def route_key(route):
 		from math import log
 		return (

mercurial