Skip to content
Snippets Groups Projects
Commit e80ea8f5 authored by Wilbur, Spencer Franklin's avatar Wilbur, Spencer Franklin
Browse files

ran lint

parent 273a0835
No related branches found
No related tags found
1 merge request!329Added several changes to allow for users to retrieve one minute and one hour...
......@@ -167,6 +167,7 @@ class DataApiQuery(BaseModel):
# format: Union[OutputFormat, str] = OutputFormat.IAGA2002
# data_host: Union[DataHost, str] = DataHost.DEFAULT #This parameter also has no meaning in the Filter alrogithm use case
# The new class inheriting from DataApiQuery
class FilterDataApiQuery(DataApiQuery):
input_sampling_period: SamplingPeriod = SamplingPeriod.SECOND
......
......@@ -46,9 +46,9 @@ if METADATA_ENDPOINT:
@app.middleware("http")
async def add_headers(request: Request, call_next):
response = await call_next(request)
response.headers[
"Access-Control-Allow-Headers"
] = "accept, origin, authorization, content-type"
response.headers["Access-Control-Allow-Headers"] = (
"accept, origin, authorization, content-type"
)
response.headers["Access-Control-Allow-Methods"] = "*"
response.headers["Access-Control-Allow-Origin"] = "*"
response.headers["Cache-Control"] = "max-age=60"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment