Skip to content

Commit

Permalink
removed accidental prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Wolff committed Aug 16, 2024
1 parent 661c943 commit 5cf7b39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion runner
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ from concurrent.futures import ThreadPoolExecutor

from constants import SIFFTheatre, GoogleCalendar
from siff_calendar_updater import update_calendar
from util import get_logger


def update_single_calendar(calendar_id: GoogleCalendar, theatre: SIFFTheatre):
update_calendar(calendar_id, theatre=theatre)


logger = get_logger(__name__)

if __name__ == '__main__':
# change path to script directory for relative paths (i.e., for credential files)
abspath = os.path.abspath(__file__)
Expand All @@ -23,4 +26,4 @@ if __name__ == '__main__':
try:
future.result()
except Exception as e:
print(f"An error occurred: {e}")
logger.critical(f"An error occurred: {e}")
1 change: 0 additions & 1 deletion siff_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def scrape_page_calendar(url) -> List[MovieShowing]:
locations = _extract_locations(movie)
meta = _get_metadata(meta_source=movie.find('div', class_='small-copy'),
reference_showing=daily_showings[0] if daily_showings else None)
print(daily_showings[0])

for showing, location in zip(daily_showings, locations):
movie_link = _get_movie_link(title_element)
Expand Down
1 change: 0 additions & 1 deletion util.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def get_calendar_name(calendar: GoogleCalendar) -> str:

def read_html_files(directory):
html_files = {}
print()

for root, dirs, files in os.walk(directory):
for file in files:
Expand Down

0 comments on commit 5cf7b39

Please sign in to comment.