From 90fe308f1e7309b8c32bfc22580154dbd4e83ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Thu, 5 Dec 2024 08:40:32 -0800 Subject: [PATCH] Move params for email route --- src/gort/recipes/operations.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gort/recipes/operations.py b/src/gort/recipes/operations.py index 9d93b856..c31fe792 100644 --- a/src/gort/recipes/operations.py +++ b/src/gort/recipes/operations.py @@ -337,7 +337,7 @@ class PostObservingRecipe(BaseRecipe): name = "post-observing" - email_route: ClassVar[str] = "/logs/night-logs/0/email?only_if_not_sent=1" + email_route: ClassVar[str] = "/logs/night-logs/0/email" async def recipe(self, send_email: bool = True): """Runs the post-observing sequence.""" @@ -360,7 +360,10 @@ async def recipe(self, send_email: bool = True): if send_email: self.gort.log.info("Sending night log email.") - result = await get_lvmapi_route(self.email_route) + result = await get_lvmapi_route( + self.email_route, + params={"only_if_not_sent": True}, + ) if not result: self.gort.log.warning("Night log had already been sent.")