From f44ea74b2007937a262bcbb0aa64692c6efa09dc Mon Sep 17 00:00:00 2001 From: Aaron Meese Date: Mon, 10 Aug 2020 08:31:30 -0500 Subject: [PATCH] Vars out of order The function was expecting a branch there, so I had to specify the committer. --- loc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loc.py b/loc.py index e99e42a..8d37f16 100644 --- a/loc.py +++ b/loc.py @@ -86,6 +86,6 @@ class LinesOfCode: data = input_file.read() try: contents = repo.get_contents("charts/bar_graph.png") - repo.update_file(contents.path, "Charts Updated", data, contents.sha, committer) + repo.update_file(contents.path, "Charts Updated", data, contents.sha, committer=committer) except Exception as e: - repo.create_file("charts/bar_graph.png", "Charts Added", data, committer) + repo.create_file("charts/bar_graph.png", "Charts Added", data, committer=committer)