GuglielmoTor commited on
Commit
eb73d54
·
verified ·
1 Parent(s): eb9a482

Update Data_Fetching_and_Rendering.py

Browse files
Files changed (1) hide show
  1. Data_Fetching_and_Rendering.py +1 -1
Data_Fetching_and_Rendering.py CHANGED
@@ -54,7 +54,7 @@ def fetch_posts_and_stats(comm_client_id, community_token, count=10):
54
  token_dict = community_token if isinstance(community_token, dict) else {'access_token': community_token, 'token_type': 'Bearer'}
55
  session = create_session(comm_client_id, token=token_dict)
56
 
57
- org_urn, org_name = fetch_org_urn(token_dict)
58
  #org_urn, org_name = "urn:li:organization:19010008", "GRLS"
59
  posts_url = f"{API_REST_BASE}/posts?author={org_urn}&q=author&count={count}&sortBy=LAST_MODIFIED"
60
 
 
54
  token_dict = community_token if isinstance(community_token, dict) else {'access_token': community_token, 'token_type': 'Bearer'}
55
  session = create_session(comm_client_id, token=token_dict)
56
 
57
+ org_urn, org_name = fetch_org_urn(comm_client_id, token_dict)
58
  #org_urn, org_name = "urn:li:organization:19010008", "GRLS"
59
  posts_url = f"{API_REST_BASE}/posts?author={org_urn}&q=author&count={count}&sortBy=LAST_MODIFIED"
60