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

sample_get sha256 #9

Closed
dream91 opened this issue Apr 5, 2024 · 1 comment · Fixed by #10
Closed

sample_get sha256 #9

dream91 opened this issue Apr 5, 2024 · 1 comment · Fixed by #10

Comments

@dream91
Copy link

dream91 commented Apr 5, 2024

I got this error when quering hash sample_get(hash)
sample_get_by_sha256() missing 1 required positional argument: 'sha256'

when I modified sample_get in maltiverse.py

from return mapping.get(algorithm, mapping.get("sha256"))()
to return mapping.get(algorithm, mapping.get("sha256"))(sample)

Then it works now.

Tested on Python :: 3.6

@dgilm
Copy link
Collaborator

dgilm commented Apr 5, 2024

Thanks @dream91! should be fixed by #10

@dgilm dgilm closed this as completed in #10 Apr 5, 2024
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 a pull request may close this issue.

2 participants