Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move active flag to signal level instead of source level #667

Merged
merged 1 commit into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/server/endpoints/covidcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,11 @@ def handle_meta():

sources: List[Dict[str, Any]] = []
for source in data_sources:
if filter_active is not None and source.active != filter_active:
continue

meta_signals: List[Dict[str, Any]] = []

for signal in source.signals:
if filter_active is not None and signal.active != filter_active:
continue
if filter_signal and all((not s.matches(signal.source, signal.signal) for s in filter_signal)):
continue
if filter_smoothed is not None and signal.is_smoothed != filter_smoothed:
Expand Down
Loading