Vars out of order

The function was expecting a branch there, so I had to specify the committer.
This commit is contained in:
Aaron Meese
2020-08-10 08:31:30 -05:00
parent 33d73645a9
commit f44ea74b20

4
loc.py
View File

@@ -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)