mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 05:12:11 +01:00
parent
90846424cd
commit
a5eeac9ac4
2 changed files with 6 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "git-stats",
|
||||
"version": "2.9.2",
|
||||
"version": "2.9.3",
|
||||
"description": "Local git statistics including GitHub-like contributions calendars.",
|
||||
"main": "lib/index.js",
|
||||
"bin": {
|
||||
|
|
|
@ -20,13 +20,11 @@ function migrate() {
|
|||
Logger.log(e);
|
||||
}
|
||||
|
||||
if (data.commits) {
|
||||
return;
|
||||
}
|
||||
|
||||
var newStats = { commits: {} };
|
||||
data.commits = data.commits || {};
|
||||
var newStats = { commits: data.commits };
|
||||
delete data.commits;
|
||||
Object.keys(data).forEach(function (day) {
|
||||
var cDay = newStats.commits[day] = {};
|
||||
var cDay = newStats.commits[day] = newStats.commits[day] || {};
|
||||
Object.keys(data[day]).map(function (c) {
|
||||
Object.keys(data[day][c]).map(function (h) {
|
||||
cDay[h] = 1;
|
||||
|
@ -38,3 +36,4 @@ function migrate() {
|
|||
}
|
||||
|
||||
migrate();
|
||||
|
||||
|
|
Loading…
Reference in a new issue