From a996ad61744af297b7ac9db60c9d254966aaa3a6 Mon Sep 17 00:00:00 2001 From: Makuwu Date: Fri, 14 Apr 2023 18:37:11 +0200 Subject: [PATCH] Fix issue with calling strptime() This change fixes an issue in the code where the strptime() method was being called without specifying the datetime module. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 81d3d11..c94b67a 100644 --- a/main.py +++ b/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