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

Search function always returns None #27

Closed
jbondguy007 opened this issue Aug 18, 2024 · 2 comments
Closed

Search function always returns None #27

jbondguy007 opened this issue Aug 18, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@jbondguy007
Copy link

Hello, I've recently noticed that the API no longer returns anything.

I've tried various different queries, including titles of games that did return a result in the past, but somehow it doesn't seem like any query works anymore.

C:\WINDOWS\system32>python
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from howlongtobeatpy import HowLongToBeat
>>> results = HowLongToBeat().search("CrossCode")
>>> print(results)
None
@ScrappyCocco ScrappyCocco self-assigned this Aug 18, 2024
@ScrappyCocco
Copy link
Owner

Are you sure you are on the last API version? Mine works doing exactly the same

Python 3.10.13 (main, Jul 11 2024, 16:23:02) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from howlongtobeatpy import HowLongToBeat
>>> results = HowLongToBeat().search("CrossCode")
>>> print(results)
[<howlongtobeatpy.HowLongToBeatEntry.HowLongToBeatEntry object at 0x7eba7b0a7c40>, <howlongtobeatpy.HowLongToBeatEntry.HowLongToBeatEntry object at 0x7eba79bdc160>]

As this test also shows that it's working https://github.com/ScrappyCocco/HowLongToBeat-PythonAPI/actions/runs/10442239792

@ScrappyCocco ScrappyCocco added the question Further information is requested label Aug 18, 2024
@jbondguy007
Copy link
Author

Ah, my bad! Upgrading resolved the issue. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants