Skip to content

Commit

Permalink
Remove dict comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Aug 20, 2024
1 parent 86069c1 commit b79c7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hasjob/views/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def make_pay_graph(currency, posts, rmin=None, rmax=None, minposts=5):
for bucket in pay_graph_buckets[currency]
if (bucket >= rmin and bucket <= rmax)
]
buckets = {bucket: 0 for bucket in rbuckets}
buckets = dict.fromkeys(rbuckets, 0)
for pmin, pmax in pay_data:
for bucket in rbuckets:
if bucket >= pmin and bucket <= pmax:
Expand Down

0 comments on commit b79c7d3

Please sign in to comment.