Commit 651e196
committed
api/rest: Let p{roject,eople,atches}_list return a generator
This has the advantage that with pagination the first entries are already
provided before later entries are queried from the server. Also if the
generator isn't walked through completely, only the needed queries are
actually executed.
All callers of these functions can cope with the returned object being a
generator now instead of a list as they just iterate once over it.1 parent 5be4d45 commit 651e196
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
| 647 | + | |
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
682 | | - | |
| 682 | + | |
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
| 774 | + | |
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| |||
0 commit comments