From 05be813bfdbdcf819be9bc606754469f679d6fe6 Mon Sep 17 00:00:00 2001 From: Geosynopsis Date: Thu, 18 Apr 2024 16:21:33 +0200 Subject: [PATCH] Update backend interface to comply with protocol update --- stat_fastapi_blacksky/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stat_fastapi_blacksky/backend.py b/stat_fastapi_blacksky/backend.py index fe94879..37365eb 100644 --- a/stat_fastapi_blacksky/backend.py +++ b/stat_fastapi_blacksky/backend.py @@ -111,13 +111,13 @@ class StatBlackskyBackend: def __init__(self): settings = Settings.load() - def products(self, request: Request) -> list[Product]: + async def get_products(self, request: Request) -> list[Product]: """ Return a list of supported products. """ return PRODUCTS - def product(self, product_id: str, request: Request) -> Product | None: + async def get_product(self, product_id: str, request: Request) -> Product | None: """ Return the product identified by `product_id` or `None` if it isn't supported.