This commit is contained in:
Adrian Charkiewicz 2022-06-08 15:21:55 +02:00
parent 18bebd05a1
commit 573b896431

View File

@ -36,4 +36,24 @@ def getTitle(user_title):
return titles[max_index] return titles[max_index]
#def getSeats: #def getSeats:
#pass #pass
def getTime(user_time):
numbers = re.findall('[0-9]+', user_time)
numbers = [number.zfill(2) for number in numbers]
return ":".join(numbers[:2])