This pull request includes multiple changes to enhance event similarity detection, improve logging, and update the frontend design. The most important changes include adding preprocessing for event titles, improving the event similarity check, configuring logging, and updating the CSS and HTML for better UI.
Event Similarity Detection Improvements:
Added preprocess_title function to standardize event titles by converting to lowercase, removing special characters, and trimming extra whitespace. (access_amherst_backend/access_amherst_algo/calendar_scraper/calendar_saver.py, access_amherst_backend/access_amherst_algo/rss_scraper/parse_rss.py) [1][2]
Updated is_calendar_event_similar and is_similar_event functions to preprocess titles, validate inputs, and use TF-IDF vectorization for improved similarity checks. (access_amherst_backend/access_amherst_algo/calendar_scraper/calendar_saver.py, access_amherst_backend/access_amherst_algo/rss_scraper/parse_rss.py) [1][2]
Logging Configuration:
Configured logging in parse_rss.py to output logs with timestamps, log levels, and messages for better debugging and monitoring. (access_amherst_backend/access_amherst_algo/rss_scraper/parse_rss.py)
Frontend Design Updates:
Updated CSS to enhance the layout and appearance of event items, including changes to grid columns, background color, padding, and added styles for .event-item, .event-image, and .event-content. (access_amherst_backend/access_amherst_algo/static/access_amherst_algo/css/styles.css) [1][2][3]
Modified HTML to adjust margins and emphasize filter labels for better readability and user experience. (access_amherst_backend/access_amherst_algo/templates/access_amherst_algo/home.html) [1][2][3][4]
Configuration Changes:
Set DEBUG to False in the Django settings to enhance security in the production environment. (access_amherst_backend/access_amherst_backend/settings.py)
This pull request includes multiple changes to enhance event similarity detection, improve logging, and update the frontend design. The most important changes include adding preprocessing for event titles, improving the event similarity check, configuring logging, and updating the CSS and HTML for better UI.
Event Similarity Detection Improvements:
preprocess_title
function to standardize event titles by converting to lowercase, removing special characters, and trimming extra whitespace. (access_amherst_backend/access_amherst_algo/calendar_scraper/calendar_saver.py
,access_amherst_backend/access_amherst_algo/rss_scraper/parse_rss.py
) [1] [2]is_calendar_event_similar
andis_similar_event
functions to preprocess titles, validate inputs, and use TF-IDF vectorization for improved similarity checks. (access_amherst_backend/access_amherst_algo/calendar_scraper/calendar_saver.py
,access_amherst_backend/access_amherst_algo/rss_scraper/parse_rss.py
) [1] [2]Logging Configuration:
parse_rss.py
to output logs with timestamps, log levels, and messages for better debugging and monitoring. (access_amherst_backend/access_amherst_algo/rss_scraper/parse_rss.py
)Frontend Design Updates:
.event-item
,.event-image
, and.event-content
. (access_amherst_backend/access_amherst_algo/static/access_amherst_algo/css/styles.css
) [1] [2] [3]access_amherst_backend/access_amherst_algo/templates/access_amherst_algo/home.html
) [1] [2] [3] [4]Configuration Changes:
DEBUG
toFalse
in the Django settings to enhance security in the production environment. (access_amherst_backend/access_amherst_backend/settings.py
)