forked from dymik739/modular-bot-framework-for-telegram
		
	auto-schedule-pro: fix redirection fail when more than one link provided by the schedule
This commit is contained in:
		
							parent
							
								
									29a86f7320
								
							
						
					
					
						commit
						2f004fec7d
					
				@ -80,7 +80,7 @@ if next_pair_time == None:
 | 
			
		||||
        #self.RESPONCE = "Актуальна пара: {}\nДата: {}\nВикладач: {}\nПосилання на пару: {}".format(p['name'], human_readable_date, p['teacher'], p['link'])
 | 
			
		||||
        #print("test3.1.5")
 | 
			
		||||
 | 
			
		||||
        print(f"Location: {p['link']}\n\n")
 | 
			
		||||
        print(f"Location: {p['link'].split()[0]}\n\n")
 | 
			
		||||
    else:
 | 
			
		||||
        self.RESPONCE = "Пар немає взагалі. Ми вільні!"
 | 
			
		||||
 | 
			
		||||
@ -108,4 +108,4 @@ else:
 | 
			
		||||
 | 
			
		||||
    #self.RESPONCE = "Актуальна пара: {}\nДата: {}\nВикладач: {}\nПосилання на пару: {}".format(p['name'], human_readable_date, p['teacher'], p['link'])
 | 
			
		||||
 | 
			
		||||
    print(f"Location: {p['link']}\n\n")
 | 
			
		||||
    print(f"Location: {p['link'].split()[0]}\n\n")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user