Skip to content

Commit

Permalink
updating to newest version (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
josojo authored Apr 23, 2022
1 parent 7594200 commit fb4f245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dune_api_scripts/duneanalytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def initiate_new_query(self, query_id, query):
"session_id": 84
},
# pylint: disable=line-too-long
"query": "mutation UpsertQuery($session_id: Int!, $object: queries_insert_input!, $on_conflict: queries_on_conflict!, $favs_last_24h: Boolean! = false, $favs_last_7d: Boolean! = false, $favs_last_30d: Boolean! = false, $favs_all_time: Boolean! = true) {\n insert_queries_one(object: $object, on_conflict: $on_conflict) {\n ...Query\n favorite_queries(where: {user_id: {_eq: $session_id}}, limit: 1) {\n created_at\n __typename\n }\n __typename\n }\n}\n\nfragment Query on queries {\n ...BaseQuery\n ...QueryVisualizations\n ...QueryForked\n ...QueryUsers\n ...QueryFavorites\n __typename\n}\n\nfragment BaseQuery on queries {\n id\n dataset_id\n name\n description\n query\n private_to_group_id\n is_temp\n is_archived\n created_at\n updated_at\n schedule\n tags\n parameters\n __typename\n}\n\nfragment QueryVisualizations on queries {\n visualizations {\n id\n type\n name\n options\n created_at\n __typename\n }\n __typename\n}\n\nfragment QueryForked on queries {\n forked_query {\n id\n name\n user {\n name\n __typename\n }\n __typename\n }\n __typename\n}\n\nfragment QueryUsers on queries {\n user {\n ...User\n __typename\n }\n __typename\n}\n\nfragment User on users {\n id\n name\n profile_image_url\n __typename\n}\n\nfragment QueryFavorites on queries {\n query_favorite_count_all @include(if: $favs_all_time) {\n favorite_count\n __typename\n }\n query_favorite_count_last_24h @include(if: $favs_last_24h) {\n favorite_count\n __typename\n }\n query_favorite_count_last_7d @include(if: $favs_last_7d) {\n favorite_count\n __typename\n }\n query_favorite_count_last_30d @include(if: $favs_last_30d) {\n favorite_count\n __typename\n }\n __typename\n}\n"
"query": "mutation UpsertQuery($session_id: Int!, $object: queries_insert_input!, $on_conflict: queries_on_conflict!, $favs_last_24h: Boolean! = false, $favs_last_7d: Boolean! = false, $favs_last_30d: Boolean! = false, $favs_all_time: Boolean! = true) {\n insert_queries_one(object: $object, on_conflict: $on_conflict) {\n ...Query\n favorite_queries(where: {user_id: {_eq: $session_id}}, limit: 1) {\n created_at\n __typename\n }\n __typename\n }\n}\n\nfragment Query on queries {\n ...BaseQuery\n ...QueryVisualizations\n ...QueryForked\n ...QueryUsers\n ...QueryFavorites\n __typename\n}\n\nfragment BaseQuery on queries {\n id\n dataset_id\n name\n description\n query\n is_private\n is_temp\n is_archived\n created_at\n updated_at\n schedule\n tags\n parameters\n __typename\n}\n\nfragment QueryVisualizations on queries {\n visualizations {\n id\n type\n name\n options\n created_at\n __typename\n }\n __typename\n}\n\nfragment QueryForked on queries {\n forked_query {\n id\n name\n user {\n name\n __typename\n }\n __typename\n }\n __typename\n}\n\nfragment QueryUsers on queries {\n user {\n ...User\n __typename\n }\n __typename\n}\n\nfragment User on users {\n id\n name\n profile_image_url\n __typename\n}\n\nfragment QueryFavorites on queries {\n query_favorite_count_all @include(if: $favs_all_time) {\n favorite_count\n __typename\n }\n query_favorite_count_last_24h @include(if: $favs_last_24h) {\n favorite_count\n __typename\n }\n query_favorite_count_last_7d @include(if: $favs_last_7d) {\n favorite_count\n __typename\n }\n query_favorite_count_last_30d @include(if: $favs_last_30d) {\n favorite_count\n __typename\n }\n __typename\n}\n"
}
self.handle_dune_request(
query_data, "New query has been posted with response:")
Expand Down

0 comments on commit fb4f245

Please sign in to comment.