Skip to content

Commit

Permalink
- Add date information to the commits
Browse files Browse the repository at this point in the history
- Add a todo for making renames happen outside of data collection
- Remove a debug statement for renames
  • Loading branch information
Jonnycake committed Jan 8, 2019
1 parent 167fd50 commit f8bcff6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def keepFileStats(self, change, change_info):
del self.data['files'][change.a_path]

# Keep track of renames
# @todo This should be done outside of data collection so we can work with the cache
if change.a_path not in self.renames:
self.renames[change.a_path] = llist.sllist([change.a_path, change.b_path])
else:
Expand Down Expand Up @@ -196,7 +197,7 @@ def loadLiveData(self):
tmp_commit_data = {
"author": commit.author.name,
"files": {},
"date": "unknown"
"date": commit.committed_date
}
tmp_commit_data['files'] = self.getDiffStats(commit, last_commit)
commits[str(commit)] = tmp_commit_data
Expand All @@ -218,7 +219,7 @@ def loadLiveData(self):
a_time = time.time()

data['commits'] = commits
print(self.renames)

return data

def explore(self):
Expand Down

0 comments on commit f8bcff6

Please sign in to comment.