From 4d73faf24a42c58dc68a8fd636b26ad8df81e347 Mon Sep 17 00:00:00 2001 From: 099010 Date: Sat, 15 Oct 2022 22:16:36 +0800 Subject: [PATCH] Update graph.py attempt get more informations --- demo/graphtutorial/graph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo/graphtutorial/graph.py b/demo/graphtutorial/graph.py index 4449be3..1630ac1 100644 --- a/demo/graphtutorial/graph.py +++ b/demo/graphtutorial/graph.py @@ -48,7 +48,9 @@ def get_inbox(self): # Only request specific properties select = 'from,isRead,receivedDateTime,subject' # Get at most 25 results - top = 25 + # top = 25 + top = random.randint(5,25) + print("get{}results".format(top)) # Sort by received time, newest first order_by = 'receivedDateTime DESC' request_url = f'{endpoint}?$select={select}&$top={top}&$orderBy={order_by}'