Skip to content

Commit 2826463

Browse files
committed
Run for licenses, update data
1 parent 6ce8515 commit 2826463

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

github/data_github_2024_3_29.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

github/data_github_2024_4_5.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
LICENSE_TYPE,Repository Count
2+
CC0-1.0,239474
3+
CC-BY-4.0,89918
4+
CC-BY-SA-4.0,23318

github/github_scratcher.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def set_up_data_file():
2929
"""Writes the header row of the data file."""
3030
header_title = "LICENSE_TYPE,Repository Count"
3131
with open(DATA_WRITE_FILE, "w") as f:
32-
f.write(header_title + "\n")
32+
f.write(f"{header_title}\n")
3333

3434

3535
def get_response_elems(license):
@@ -83,7 +83,9 @@ def record_all_licenses():
8383
"""Records the data of all license types findable in the license list and
8484
records these data into the DATA_WRITE_FILE as specified in that constant.
8585
"""
86-
record_license_data("CC")
86+
licenses = ["CC0-1.0", "CC-BY-4.0", "CC-BY-SA-4.0"]
87+
for license in licenses:
88+
record_license_data(license)
8789

8890

8991
def main():

0 commit comments

Comments
 (0)