Skip to content

Commit bbbf195

Browse files
committed
Github processing and reporting
1 parent 7beebb3 commit bbbf195

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/2-process/github_process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def parse_arguments():
3939
help=f"Data quarter in format YYYYQx (default: {QUARTER})",
4040
)
4141
parser.add_argument(
42-
"--enable_save",
42+
"--enable-save",
4343
action="store_true",
4444
help="Enable saving results (default: False)",
4545
)
@@ -134,7 +134,7 @@ def process_totals_by_license(args, count_data):
134134

135135
def process_totals_by_restriction(args, count_data):
136136
"""
137-
Processing count data: totals by Approved for Free Cultural Works
137+
Processing count data: totals by restriction
138138
"""
139139
# https://creativecommons.org/public-domain/freeworks/
140140
LOGGER.info(process_totals_by_restriction.__doc__.strip())

scripts/3-report/github_report.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def Plot_by_license_type(args):
132132
name_label = "License"
133133
data_label = "Count"
134134
data = pd.read_csv(file_path, index_col=name_label)
135-
135+
data.sort_values(name_label, ascending=False, inplace=True)
136136
title = "Totals by license type"
137137
plt = plot.combined_plot(
138138
args=args,
@@ -174,7 +174,7 @@ def plot_totals_by_code_license(args):
174174
name_label = "Category"
175175
data_label = "Count"
176176
data = pd.read_csv(file_path, index_col=name_label)
177-
177+
data.sort_values(name_label, ascending=False, inplace=True)
178178
title = "Totals by Code License"
179179
plt = plot.combined_plot(
180180
args=args,
@@ -216,7 +216,7 @@ def plot_totals_by_restriction(args):
216216
name_label = "Category"
217217
data_label = "Count"
218218
data = pd.read_csv(file_path, index_col=name_label)
219-
219+
data.sort_values(name_label, ascending=False, inplace=True)
220220
title = "Totals by restriction"
221221
plt = plot.combined_plot(
222222
args=args,
@@ -257,7 +257,7 @@ def plot_totals_by_rights_reserved(args):
257257
name_label = "Category"
258258
data_label = "Count"
259259
data = pd.read_csv(file_path, index_col=name_label)
260-
260+
data.sort_values(name_label, ascending=False, inplace=True)
261261
title = "Totals by Rights Reserved vs No Rights Reserved"
262262
plt = plot.combined_plot(
263263
args=args,

0 commit comments

Comments
 (0)