File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
broker/cloud_run/lsst/ps_to_storage Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 44"""This module stores LSST alert data as an Avro file in Cloud Storage and publishes it to various Pub/Sub topics."""
55
66import os
7+ from typing import Any
78import flask
89import pittgoogle
910from google .cloud import logging , storage
1011from google .cloud .exceptions import PreconditionFailed
11- from typing import Any
1212
1313# [FIXME] Make this helpful or else delete it.
1414# Connect the python logger to the google cloud logger.
@@ -174,8 +174,7 @@ def _process_field(original_value: Any, config: dict) -> Any:
174174
175175 if config ["is_list" ]:
176176 return [_filter_dict (item , whitelisted_fields ) for item in original_value or []]
177- else :
178- return _filter_dict (original_value , whitelisted_fields )
177+ return _filter_dict (original_value , whitelisted_fields )
179178
180179
181180def _filter_dict (alert_dict : dict , whitelisted_fields : set ) -> dict :
You can’t perform that action at this time.
0 commit comments