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:
commit
197df7ec86
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue