Fixed bug when query term was not complete when no destination was given
the last char was cut before
This commit is contained in:
		
							parent
							
								
									274c5b1b48
								
							
						
					
					
						commit
						b23a86cd90
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								bot.py
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								bot.py
									
										
									
									
									
								
							| 
						 | 
					@ -30,11 +30,11 @@ class Query:
 | 
				
			||||||
            self.input = request_tmp[:separator_index - 1].strip()
 | 
					            self.input = request_tmp[:separator_index - 1].strip()
 | 
				
			||||||
            self.destination = request_tmp[separator_index + 4:].strip()
 | 
					            self.destination = request_tmp[separator_index + 4:].strip()
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self.input = request_tmp
 | 
					            self.input = request_tmp.strip()
 | 
				
			||||||
        if args[0].isdigit():
 | 
					        if args[0].isdigit():
 | 
				
			||||||
            self.station_id = args[0].strip()
 | 
					            self.station_id = args[0].strip()
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self.station_id = search_station(request_tmp[:separator_index].strip())
 | 
					            self.station_id = search_station(input)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def start(update):
 | 
					def start(update):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue