Commit ecfe4b1
Add implementation for several backend methods in decks
rename:
https://github.com/ankitects/anki/blob/a6d5c949970627f2b4dcea8a02fea3a497e0440f/pylib/anki/decks.py#L271-L277
The backend method can receive two types a deck or DeckId, we now have
two methods for this(one of the methods was refactored with the proper code).
get:
https://github.com/ankitects/anki/blob/a6d5c949970627f2b4dcea8a02fea3a497e0440f/pylib/anki/decks.py#L240-L253
nameIfExists:
https://github.com/ankitects/anki/blob/a6d5c949970627f2b4dcea8a02fea3a497e0440f/pylib/anki/decks.py#L390-L394
name:
https://github.com/ankitects/anki/blob/a6d5c949970627f2b4dcea8a02fea3a497e0440f/pylib/anki/decks.py#L384-L388
Co-authored-by: David Allison <[email protected]>1 parent e1bd644 commit ecfe4b1
1 file changed
+33
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | 292 | | |
294 | | - | |
| 293 | + | |
295 | 294 | | |
296 | | - | |
297 | | - | |
| 295 | + | |
| 296 | + | |
298 | 297 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
304 | 313 | | |
| 314 | + | |
305 | 315 | | |
306 | 316 | | |
307 | 317 | | |
| |||
333 | 343 | | |
334 | 344 | | |
335 | 345 | | |
336 | | - | |
337 | 346 | | |
338 | 347 | | |
339 | 348 | | |
340 | 349 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
345 | 358 | | |
346 | 359 | | |
347 | 360 | | |
| |||
491 | 504 | | |
492 | 505 | | |
493 | 506 | | |
494 | | - | |
| 507 | + | |
495 | 508 | | |
496 | 509 | | |
497 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
498 | 514 | | |
499 | 515 | | |
500 | 516 | | |
501 | 517 | | |
502 | 518 | | |
503 | | - | |
| 519 | + | |
504 | 520 | | |
505 | 521 | | |
506 | 522 | | |
| |||
0 commit comments