Skip to content

Commit 33830e6

Browse files
committed
Made changes
1 parent 9769dfa commit 33830e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/3-report/github_report.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# Setup
2727
LOGGER, PATHS = shared.setup(__file__)
2828
QUARTER = os.path.basename(PATHS["data_quarter"])
29-
SECTION = "GitHub Ddta"
29+
SECTION = "GitHub data"
3030

3131

3232
def parse_arguments():
@@ -100,19 +100,19 @@ def github_intro(args):
100100
data = pd.read_csv(file_path, index_col=name_label)
101101
total_repositories = data.loc["Total public repositories", "COUNT"]
102102
cc_total = data[data.index.str.startswith("CC")]["COUNT"].sum()
103-
cc_percentage = (cc_total / total_repositories) * 100
103+
cc_percentage = f"{(cc_total / total_repositories) * 100:.2f}%"
104104
shared.update_readme(
105105
args,
106106
SECTION,
107107
"Overview",
108108
None,
109109
None,
110110
"The GitHub data, below, uses the `total_count`"
111-
" returned by API for search queries of the various legal tools"
111+
" returned by API for search queries of the various legal tools."
112112
"\n"
113-
f"**The results indicate that {cc_total}{cc_percentage}"
114-
" of the {total_repositories} total public repositories"
115-
" on GitHub that use a CC legal tool. ( Additionally,"
113+
f"**The results indicate that {cc_total} ({cc_percentage})"
114+
f"** of the {total_repositories} total public repositories"
115+
" on GitHub that use a CC legal tool. Additionally,"
116116
" many more use a non-CC use a Public domain"
117117
" equivalent legal tools.**\n"
118118
"\n"
@@ -135,8 +135,8 @@ def github_intro(args):
135135
" under the same terms."
136136
" [Copyleft](https://en.wikipedia.org/wiki/Copyleft)"
137137
"\n"
138-
"Thank you GitHub for providing public access to"
139-
" repository metadata through its API.",
138+
"Thank you GitHub for providing public API"
139+
" access to repository metadata!",
140140
)
141141

142142

0 commit comments

Comments
 (0)