Skip to content

Commit

Permalink
chore: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 2, 2024
1 parent 394fdd3 commit 4bc1480
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions data_registry/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ def facet_counts(qs, key):
exclude[count] = 0

facets = {
"letters": {value: 0 for value in alphabets[language_code]},
"date_ranges": {value: 0 for value in date_ranges},
"frequencies": {value: 0 for value in Collection.UpdateFrequency.values},
"regions": {value: 0 for value in Collection.Region.values},
"counts": {value: 0 for value in counts},
"letters": {dict.fromkeys(alphabets[language_code], 0)},
"date_ranges": {dict.fromkeys(date_ranges, 0)},
"frequencies": {dict.fromkeys(Collection.UpdateFrequency.values, 0)},
"regions": {dict.fromkeys(Collection.Region.values, 0)},
"counts": {dict.fromkeys(counts, 0)},
}
for value, n in facet_counts(qs, "letter"):
facets["letters"][value] = n
Expand Down

0 comments on commit 4bc1480

Please sign in to comment.