1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-04-30 07:33:09 +00:00

Updates get_match_countdown()

Update to print the countdown as Days:Hours:Minutes:Seconds (1:24:60:60) like a normal time object
This commit is contained in:
Grant Ephross 2022-07-13 23:11:57 -05:00 committed by GitHub
parent b55bd67aca
commit e482a70747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,6 +338,7 @@ def get_results_by_date(start_date, end_date):
def get_match_countdown(matchpage):
match = get_parsed_page(matchpage)
match_countdown = match.find("div", {"class": "countdown"}).text
match_countdown = re.sub("[dhms ]","",match_countdown)
return match_countdown