incresed page size to 50
This commit is contained in:
@@ -120,7 +120,7 @@ def get_future_calendar_events():
|
|||||||
t1 = t1.strftime("%Y-%m-%d")
|
t1 = t1.strftime("%Y-%m-%d")
|
||||||
t2 = t2.strftime("%Y-%m-%d")
|
t2 = t2.strftime("%Y-%m-%d")
|
||||||
|
|
||||||
filter = f"?StartDateTime={t1}&EndDateTime={t2}"
|
filter = f"?StartDateTime={t1}&EndDateTime={t2}" + "&$top=50"
|
||||||
|
|
||||||
token = get_access_token()
|
token = get_access_token()
|
||||||
|
|
||||||
@@ -189,6 +189,7 @@ if __name__ == "__main__":
|
|||||||
parser.add_argument('--show_events', help='Show available events for selected calendar', action='store_true')
|
parser.add_argument('--show_events', help='Show available events for selected calendar', action='store_true')
|
||||||
parser.add_argument('--update_test_event', help='Execute a patch request for testing', action='store_true')
|
parser.add_argument('--update_test_event', help='Execute a patch request for testing', action='store_true')
|
||||||
parser.add_argument('--send_test_email', help='send a test email', action='store_true')
|
parser.add_argument('--send_test_email', help='send a test email', action='store_true')
|
||||||
|
parser.add_argument('--get_future_alendar_events', help='gets future calendar events', action='store_true')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
@@ -248,4 +249,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
print(send_mail("struebin.patrick@gmail.com", "test test", "bla"))
|
print(send_mail("struebin.patrick@gmail.com", "test test", "bla"))
|
||||||
|
|
||||||
|
if args.get_future_alendar_events:
|
||||||
|
events = get_future_calendar_events()
|
||||||
|
|
||||||
print("Done.")
|
print("Done.")
|
||||||
Reference in New Issue
Block a user