got time
This commit is contained in:
parent
18bebd05a1
commit
573b896431
@ -36,4 +36,24 @@ def getTitle(user_title):
|
||||
return titles[max_index]
|
||||
|
||||
#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])
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user