We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a600ba4 commit 90f80baCopy full SHA for 90f80ba
src/writegithubstat/githubstat.py
@@ -114,7 +114,7 @@ def process_stat(data):
114
return df
115
116
117
-class Stars(GithubStatType):
+class Cumulative(GithubStatType):
118
@property
119
def url(self):
120
return f"https://api.github.com/repos/{self._auth.owner}/{self._auth.repo}"
@@ -125,12 +125,13 @@ def dimensions(self):
125
126
127
def measures(self):
128
- return ["stars_cumulative"]
+ return ["stars", "forks"]
129
130
@staticmethod
131
def process_stat(data):
132
stars = data["stargazers_count"]
133
- df = pd.DataFrame({"stars_cumulative": [stars]})
+ forks = data["forks_count"]
134
+ df = pd.DataFrame({"stars": [stars], "forks": [forks]})
135
136
137
0 commit comments