Skip to content

Commit

Permalink
fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-dkrz committed Feb 5, 2025
1 parent 02d6a15 commit b73b41f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions freva-rest/src/freva_rest/databrowser_api/endpoints.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Main script that runs the rest API."""

import asyncio
import uuid
from typing import Annotated, Any, Dict, List, Literal, Union

Expand All @@ -20,7 +21,7 @@
StreamingResponse,
)
from pydantic import BaseModel, Field
import asyncio

from freva_rest.auth import TokenPayload, auth
from freva_rest.logger import logger
from freva_rest.rest import app, server_config
Expand Down Expand Up @@ -297,10 +298,10 @@ async def run_stac_creation() -> None:
f"{server_config.stacbrowser_host}"
f"/collections/{collection_id}"
)
# IMPORTANT: wait for the background task to start.
# Otherwise the client will get a 404 error and
# IMPORTANT: wait for the background task to start.
# Otherwise the client will get a 404 error and
# has to reload the page to see the STAC collection.
await asyncio.sleep(1)
await asyncio.sleep(1)
return RedirectResponse(
url=redirect_url,
status_code=303
Expand Down

0 comments on commit b73b41f

Please sign in to comment.