mirror of
https://github.com/SocksPls/hltv-api
synced 2025-04-29 23:23:08 +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:
parent
b55bd67aca
commit
e482a70747
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue