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

fix: keep request_hashe consistent #1254

Merged
merged 1 commit into from
Feb 16, 2025
Merged

Conversation

aparcar
Copy link
Member

@aparcar aparcar commented Feb 15, 2025

No description provided.

Copy link

codecov bot commented Feb 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.96%. Comparing base (5e65dec) to head (a8511ce).
Report is 225 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1254       +/-   ##
===========================================
+ Coverage   80.75%   90.96%   +10.20%     
===========================================
  Files          15       13        -2     
  Lines         977     1184      +207     
===========================================
+ Hits          789     1077      +288     
+ Misses        188      107       -81     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

asu/util.py Outdated
return get_str_hash(
" ".join(
sorted(
list(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can get rid of the list() as sorted automatically converts the set to a list...

    return get_str_hash(" ".join(sorted(set(x.removeprefix("+") for x in packages))))

@efahl
Copy link
Contributor

efahl commented Feb 15, 2025

Tested and works as expected.

@aparcar aparcar merged commit 7bad145 into openwrt:main Feb 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants