Commit 6a68f0c
committed
Fixed broken journal search
Simplified the code by:
1. Using the `requests` `params` keyword argument instead of manually
constructing query string.
2. Accepting query, limit, offset, etc. directly as arguments to the
search method. This way, when you do `help(bugout_client.search)`, you
see immediately what the structure of the input should be.
3. Removing unnecessary Pydantic model for search fields.1 parent 1c58b6a commit 6a68f0c
3 files changed
+19
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
528 | 532 | | |
529 | | - | |
530 | 533 | | |
531 | 534 | | |
532 | | - | |
| 535 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 156 | | |
165 | 157 | | |
166 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
344 | 343 | | |
345 | 344 | | |
346 | 345 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | 346 | | |
365 | 347 | | |
366 | 348 | | |
367 | 349 | | |
368 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
369 | 354 | | |
370 | | - | |
371 | | - | |
372 | | - | |
| 355 | + | |
373 | 356 | | |
374 | 357 | | |
375 | 358 | | |
376 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
377 | 368 | | |
0 commit comments