Skip to content

Commit 710577b

Browse files
committed
Update README.md
1 parent 83a0d8b commit 710577b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import pyxivapi
5757
from pyxivapi.models import Filter, Sort
5858

5959

60-
async def fetch_example_results(session):
60+
async def fetch_example_results():
6161
client = pyxivapi.XIVAPIClient(api_key="your_key_here")
6262

6363
# Search Lodestone for a character
@@ -113,7 +113,8 @@ async def fetch_example_results(session):
113113
name="Defiance",
114114
indexes=["Action", "PvPAction", "CraftAction"],
115115
columns=["ID", "Name", "Icon", "Description", "ClassJobCategory.Name", "ClassJobLevel", "ActionCategory.Name"],
116-
filters=filters
116+
filters=filters,
117+
string_algo="match"
117118
)
118119

119120
# Search ingame data for matches against a given query. Includes item, minion, mount & achievement descriptions, quest dialog & more.
@@ -141,7 +142,7 @@ async def fetch_example_results(session):
141142
# Get all categories of posts from the Lodestone (cached evert 15 minutes)
142143
lodestone = await client.lodestone_all()
143144

144-
await session.close()
145+
await client.session.close()
145146

146147

147148
if __name__ == '__main__':

0 commit comments

Comments
 (0)