Skip to content

Commit 92fa84d

Browse files
committed
#3 Fixed searching issue
1 parent 12c97bd commit 92fa84d

File tree

8 files changed

+41
-9
lines changed

8 files changed

+41
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ The documentation for cursepy is still a work in progress!
77
The core content will remain the same,
88
but expect minor corrections and rephrasing.
99

10-
# Introduction
10+
# Introduction
1111

1212
cursepy allows you to interact with CurseForge,
1313
which allows you to add, addons and files in a simple, easy to use format.
14-
We offer easy entry points into certain CurseForge APIs and backbends.
14+
We offer easy entry points into certain CurseForge APIs and backends.
1515

1616
Our goal is to be modular and heavily customizable for developers who
1717
have very specific wants and needs, while also being simple and intuitive

cursepy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99

1010
# Define some metadata here:
1111

12-
__version__ = '1.1.2'
12+
__version__ = '1.1.3'
1313
__author__ = 'Owen Cochell'

cursepy/classes/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class SearchParam:
3333
all search parameters in only one call.
3434
"""
3535

36-
filter: Optional[str] = field(default=None) # Term to search for
36+
searchFilter: Optional[str] = field(default=None) # Term to search for
3737
index: Optional[int] = field(default=None) # Page of search results to view
3838
pageSize: Optional[int] = field(default=None) # Number of items to display per page
3939
gameVersion: Optional[int] = field(default=None) # Game version to use

docs/source/advn/hand.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ the formatted object:
503503
Now, the object has the time attached to it.
504504
You may be thinking, why not attach the time during the format
505505
operation?
506-
You defiantly can! There is nothing stopping you.
506+
You definitely can! There is nothing stopping you.
507507
But adding that instruction to every handler you plan to write
508508
is redundant, and leads to unnecessary code.
509509
If you make a master class for you handlers,

docs/source/advn/intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ such as creating custom handlers.
105105

106106
This philosophy means that for people
107107
who want to use cursepy for interacting with CF and nothing more
108-
(which is 99% of people).
108+
(which is 99% of people),
109109
Cursepy will be simple and easy to use.
110110
Handlers will be auto-loaded and high-level methods
111111
will do and act as they are supposed to.

docs/source/basic/collection.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ method:
300300
The 'SearchParam' objects contains the following values
301301
for fine-tuning the search operation:
302302

303-
* filter - Value to search for
303+
* searchFilter - Value to search for
304304
* index - Page index to search under
305305
* pageSize - Number of items to display per page
306306
* gameVersion - Game version to search under
@@ -311,7 +311,7 @@ ____________________________
311311

312312
Most of these values are self-explanatory.
313313

314-
'filter' is the actual search term to search for.
314+
'searchFilter' is the actual search term to search for.
315315

316316
'gameVersion' is the game version to search under.
317317
This varies from game to game, and should be a string.
@@ -380,7 +380,7 @@ and print each name:
380380
381381
# Set the filter to 'test':
382382
383-
search.filter = 'test'
383+
search.searchFilter = 'test'
384384
385385
# Iterate over ALL addons:
386386

docs/source/changelog.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@
22
Changelog
33
=========
44

5+
1.1.3
6+
=====
7+
8+
Bug Fixes
9+
---------
10+
11+
* Fix search filtering issue
12+
13+
1.1.2
14+
=====
15+
16+
Bug Fixes
17+
---------
18+
19+
* Fix dictionary calling issue
20+
21+
1.1.1
22+
=====
23+
24+
Bug Fixes
25+
---------
26+
27+
* Fixed an issue with sub-modules not being included in distribution files
28+
529
1.1.0
630
=====
731

test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from cursepy import CurseClient
2+
3+
client = CurseClient()
4+
search = client.get_search()
5+
search.pageSize = 5
6+
search.searchFilter = "witchery"
7+
for i in client.search(432, client.ADDON_SEARCH, search):
8+
print(i.name)

0 commit comments

Comments
 (0)