Skip to content

Commit bcbaffb

Browse files
authored
Added conversion for str for git timestamps (#216)
* Added conversion for str for git timestamps * Removed unused variable in stats.py to satisfy 'flake8' rule
1 parent bf8ebbb commit bcbaffb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

redis_benchmarks_specification/__cli__/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_commits(args, repo):
7373
"git_hash": commit.hexsha,
7474
"git_branch": repo.active_branch.name,
7575
"commit_summary": commit.summary,
76-
"commit_datetime": commit_datetime,
76+
"commit_datetime": str(commit_datetime),
7777
}
7878
)
7979
return commits, total_commits

redis_benchmarks_specification/__cli__/stats.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,6 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
338338
logging.warn("Unable to detect group in {}".format(cmd))
339339

340340
priority_list = sorted(((priority[cmd], cmd) for cmd in priority), reverse=True)
341-
priority_list_usecs = sorted(
342-
((priority_usecs[cmd], cmd) for cmd in priority_usecs), reverse=True
343-
)
344341

345342
priority_json = {}
346343
top_10_missing = []

0 commit comments

Comments
 (0)