MCPcopy
hub / github.com/521xueweihan/HelloGitHub / get_all_data

Function get_all_data

script/github_bot/github_bot.py:90–101  ·  view source on GitHub ↗

获取全部 300 条的数据 https://developer.github.com/v3/activity/events/ GitHub 规定:默认每页 30 条,最多 300 条目

()

Source from the content-addressed store, hash-verified

88
89
90def get_all_data():
91 """
92 获取全部 300 条的数据
93 https://developer.github.com/v3/activity/events/
94 GitHub 规定:默认每页 30 条,最多 300 条目
95 """
96 all_data_list = []
97 for i in range(10):
98 response_json = get_data(i+1)
99 if response_json:
100 all_data_list.extend(response_json)
101 return all_data_list
102
103
104def check_condition(data):

Callers 1

make_contentFunction · 0.85

Calls 1

get_dataFunction · 0.85

Tested by

no test coverage detected