fix docstring
This commit is contained in:
parent
e63f8b7562
commit
ab9569a2b6
@ -2,18 +2,17 @@ from datetime import datetime, date, time
|
||||
|
||||
|
||||
def get_prize_for(start, end=datetime.now(), pph=0):
|
||||
'''
|
||||
"""
|
||||
calculate prize of billard table rental
|
||||
|
||||
:param start: start datetime of rental
|
||||
:param end: end datetime of rental
|
||||
:param pph: prize per hour of rental
|
||||
:return: the calculated prize of rental
|
||||
'''
|
||||
"""
|
||||
pps = pph / 3600
|
||||
time = (end - start).seconds
|
||||
prize = round((pps * time), 1)
|
||||
print(prize)
|
||||
return prize
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user