Skip to content

Commit 4dc3a88

Browse files
authored
Merge pull request #18 from veghdev/path
Fixed: collecting stats if path stats are empty
2 parents ed60671 + 8e14ae1 commit 4dc3a88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "write-githubstat"
77
packages = [
88
{ include = "writegithubstat", from = "src" },
99
]
10-
version = "0.2.0"
10+
version = "0.2.1"
1111
readme = "README.md"
1212
description = "write-githubstat makes it easy to collect, filter and save github statistics to csv files."
1313
license = "Apache 2.0"

Diff for: src/writegithubstat/githubstat.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ def measures(self) -> List[str]:
100100
def process_stat(self, responses: List[Dict[str, Any]]) -> pd.DataFrame:
101101
data = responses[0]
102102
df = pd.DataFrame(data)
103-
df = df.drop("title", axis=1)
103+
if "title" in df.columns:
104+
df = df.drop("title", axis=1)
104105
return df
105106

106107

0 commit comments

Comments
 (0)