lucasdavila86 / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Calendar List is limited to 100 results #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. google calendar --cal "your calendar with a lot of meetings" --date 
2009-01-1,2010-01-1 list

What is the expected output? What do you see instead?
In my case i should see 300+ results. I see that the listing stops after 
exactly 100 results. Changing the date gives exactly the same truncation.

What version of the product are you using? On what operating system?
0.9.5-1 on Ubuntu lucid

Please provide any additional information below.

Original issue reported on code.google.com by reinaert...@gmail.com on 20 Jun 2010 at 6:42

GoogleCodeExporter commented 9 years ago
Currently, max results is currently hardcoded in the function. I think it would 
be reasonable to have this be a command line option or config flag.

Original comment by dcol...@gmail.com on 20 Jun 2010 at 7:09

GoogleCodeExporter commented 9 years ago
I plan on making it so that max-results behaves like an option in the config 
file -- you can specify your own value for each service, or a default value in 
the GENERAL section.

If you feel comfortable editing the source in the meantime, you can safely 
delete the line that says "query.max_results = max_results" in 
googlecl/calendar/service.py. That will (theoretically) return up to 1000 
events. The documentation on max-results is kind of shady.

Original comment by tom.h.mi...@gmail.com on 21 Jun 2010 at 4:07

GoogleCodeExporter commented 9 years ago
Thanks, I already did that. If I understand you correctly that means it then is 
still limited to 1000 events?

Original comment by reinaert...@gmail.com on 21 Jun 2010 at 7:18

GoogleCodeExporter commented 9 years ago
I've attached a patch that should fix this behavior.

I thought I saw some strange behavior at first, but subsequent tests have been 
working. Let me know if something is still broken after this patch.

Original comment by tom.h.mi...@gmail.com on 21 Jun 2010 at 9:14

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r274.

Original comment by tom.h.mi...@gmail.com on 21 Jun 2010 at 9:18