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