Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list.rows doesn't iterate over all rows #43

Open
quesauce opened this issue Jan 29, 2019 · 1 comment
Open

list.rows doesn't iterate over all rows #43

quesauce opened this issue Jan 29, 2019 · 1 comment

Comments

@quesauce
Copy link

quesauce commented Jan 29, 2019

I'm getting massive discrepancies between the meta ItemCount (which is correct when viewing in sharepoint) and traversing the rows:

sp_list = site.lists['Support Database']

print(sp_list.meta['ItemCount'])

index = 1

for row in sp_list.rows:
    index += 1

print(index)

In this instance, meta reports 11470. The index shows 97! There are no warnings or exceptions thrown. I'm about at my wits end.

@haishangbuyexing
Copy link

haishangbuyexing commented Oct 11, 2019

in site-packages/sharepoint/lists/init.py , change the query_options in function get_rows:
query_options = E.QueryOptions(E.ViewAttributes(Scope="RecursiveAll"))
#query_options = E.QueryOptions(E.Folder(folder))
hope helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants