Skip to content

Commit

Permalink
fix: holiday URL
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Feb 11, 2025
1 parent 407750f commit 1068159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_holidates() -> (list[datetime], list[str, datetime]):
scrapes holiday list from IITKGP website
returns: list of holidays as occasions and datetime objects
"""
url = "https://www.iitkgp.ac.in/holidays"
url = "http://iitkgp.ac.in/holidays"
result = requests.get(url).text
doc = bs(result, "html.parser")
tbody = doc.tbody
Expand Down Expand Up @@ -182,4 +182,4 @@ def get_rfc_time(time: int, day: str, minute: int = 0, second: int = 0) -> str:

for hday in hdays.keys():
hdays[hday].sort()
hdays[hday] = list(set(hdays[hday])) ### datetime dict(list)
hdays[hday] = list(set(hdays[hday])) ### datetime dict(list)

0 comments on commit 1068159

Please sign in to comment.