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

View File

@ -37,3 +37,23 @@ def getTitle(user_title):
#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])