Skip to content

Commit

Permalink
holidays: remove the print lines
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiramtilakiiit committed Oct 4, 2024
1 parent d4ef1f7 commit 4051f8d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions db.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@

try:
# check if the holidays index exists
if "one_holiday_on_day" in holidaysdb.index_information():
print("The holidays index exists.")
else:
if not "one_holiday_on_day" in holidaysdb.index_information():
# create the index
holidaysdb.create_index(
[("date", 1)], unique=True, name="one_holiday_on_day"
)
print("The holidays index was created.")

print(holidaysdb.index_information())
except Exception:
pass

0 comments on commit 4051f8d

Please sign in to comment.