1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-04-29 15:13:08 +00:00

Merge pull request #41 from makusu720/master

Fix issue with calling strptime()
This commit is contained in:
David Silva 2023-04-14 18:53:16 +02:00 committed by GitHub
commit 197df7ec86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ def _monthNameToNumber(monthName: str):
# by removing the "st" from the day numbers, such as "21st" -> "21"
if monthName == "Augu":
monthName = "August"
return datetime.strptime(monthName, '%B').month
return datetime.datetime.strptime(monthName, '%B').month
def get_parsed_page(url, delay=0.5):
# This fixes a blocked by cloudflare error i've encountered