Skip to content

Commit

Permalink
Add pageInfo to Following_Activity_Feed_Query
Browse files Browse the repository at this point in the history
  • Loading branch information
RLAlpha49 committed Apr 10, 2024
1 parent 947a9e3 commit 2e5d224
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/APIUsage/APIRequests.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def API_Request(query, variables=None, max_retries=10):
Args:
query (str): The GraphQL query to send.
variables (dict, optional): The variables for the GraphQL query. Defaults to None.
max_retries (int, optional): The maximum number of retries if the request fails. Defaults to 10.
max_retries (int, optional): The maximum number of retries if the request fails.
Returns:
dict: The JSON response from the API if the request is successful, None otherwise.
Expand Down
7 changes: 7 additions & 0 deletions src/QueriesAndMutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ def Following_Activity_Feed_Query(page):
Query = """
query ($page: Int, $perPage: Int, $isFollowing: Boolean) {
Page (page: $page, perPage: $perPage) {
pageInfo {
total
currentPage
lastPage
hasNextPage
perPage
}
activities(sort: ID_DESC, isFollowing: $isFollowing) {
... on TextActivity {
id
Expand Down

0 comments on commit 2e5d224

Please sign in to comment.