File tree Expand file tree Collapse file tree 8 files changed +41
-9
lines changed
Expand file tree Collapse file tree 8 files changed +41
-9
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ The documentation for cursepy is still a work in progress!
77The core content will remain the same,
88but expect minor corrections and rephrasing.
99
10- # Introduction
10+ # Introduction
1111
1212cursepy allows you to interact with CurseForge,
1313which 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
1616Our goal is to be modular and heavily customizable for developers who
1717have very specific wants and needs, while also being simple and intuitive
Original file line number Diff line number Diff line change 99
1010# Define some metadata here:
1111
12- __version__ = '1.1.2 '
12+ __version__ = '1.1.3 '
1313__author__ = 'Owen Cochell'
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ the formatted object:
503503 Now, the object has the time attached to it.
504504You may be thinking, why not attach the time during the format
505505operation?
506- You defiantly can! There is nothing stopping you.
506+ You definitely can! There is nothing stopping you.
507507But adding that instruction to every handler you plan to write
508508is redundant, and leads to unnecessary code.
509509If you make a master class for you handlers,
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ such as creating custom handlers.
105105
106106This philosophy means that for people
107107who want to use cursepy for interacting with CF and nothing more
108- (which is 99% of people).
108+ (which is 99% of people),
109109Cursepy will be simple and easy to use.
110110Handlers will be auto-loaded and high-level methods
111111will do and act as they are supposed to.
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ method:
300300 The 'SearchParam' objects contains the following values
301301for 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
312312Most 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.
317317This 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
Original file line number Diff line number Diff line change 22Changelog
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+
5291.1.0
630=====
731
Original file line number Diff line number Diff line change 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 )
You can’t perform that action at this time.
0 commit comments