Releases: codeofdusk/marys
Releases · codeofdusk/marys
v1.1.1
Welcome to the 19 October 2022 release of Marys! This is a patch release in response to the replacement of Sharples Dining Hall by the new Dining Center.
Highlights
- Marys no longer returns a "closed"
Submenuundersharplesindicating its 24/7 closure.- Marys now returns an empty
SubmenuContainerfor Sharples to maintain backwards compatibility and avoid cluttering generation of the rootMenu's output. In other words, the result of something likemarys.Menu().ssml()will no longer indicate that Sharples is closed. - To access the Dining Center's menu, use
dining_centerin place ofsharples(for instance,marys.Menu()["dining_center"]).
- Marys now returns an empty
- To make speech output easier to listen to, The following frequently occurring allergen codes are excluded from SSML output. These codes are still present in textual output (such as
cardand__str__):::egg::::milk::::shellfish::::soy::::tree nut::::wheat::
v1.1.0
Welcome to the 14 February 2022 release of Marys! This release is focused on reliability and reaction to website and API updates.
Highlights
- Generated SSML is now fully valid, improving stability of voice assistant/TTS consumers of this library.
- Added
nowas a key inMenuobjects, which returns only meals currently available (i.e. if Sharples is currently open for lunch,nowwill return only the lunch menu, whereascurrentwould return lunch and dinner).- If no dining venue in an object is open,
nowwill fall back tocurrent(i.e. return meals "up next"). - The
currentkey is still available, and its behaviour is unchanged.
- If no dining venue in an object is open,
- Post-pandemic, Essie Mae's, Kohlberg, and Science Center have been using "Essie Mae's open", "Kohlberg Open", etc. as menu titles. To make speech more efficient, generated SSML no longer contains fragments like "at Essie Mae's, Essie's open".
- Dietary preferences (
::vegan::,::halal::, etc.) are now rendered in round brackets in menu cards and string representations. - HTTP errors are propagated upward to ease debugging.
- In a few instances this semester, the JSON endpoint went down, returning 5xx errors for a few hours. The web team think it might be due to a security appliance in front of the webserver. I've asked them to whitelist the Mary's user-agent, but in the meantime any HTTP errors will be raised as exceptions so issues are easier to trace for end users.
<html-blob>...</html-blob>tags from the API are filtered out of HTML cards.