diff --git a/updater/reports/ReportGitVersionsNew.py b/updater/reports/ReportGitVersionsNew.py new file mode 100644 index 00000000..2130f4ab --- /dev/null +++ b/updater/reports/ReportGitVersionsNew.py @@ -0,0 +1,18 @@ +from .ReportDaily import * + +# Lists which git version was used by how many users yesterday +class ReportGitVersionsNew(ReportDaily): + def name(self): + return "git-versions-new" + + def updateDailyData(self): + newHeader, newData = self.parseData( + self.executeScript(self.scriptPath("git-versions.sh"))) + + self.header = ["date"] + newHeader + + newData = [[str(self.yesterday())] + row for row in newData] + + self.data.extend(newData) + self.truncateData(self.timeRangeTotal()) + self.sortDataByDate() diff --git a/updater/update-stats.py b/updater/update-stats.py index 7569ea68..9cacd6de 100755 --- a/updater/update-stats.py +++ b/updater/update-stats.py @@ -15,6 +15,7 @@ from reports.ReportGitDownload import * from reports.ReportGitRequests import * from reports.ReportGitVersions import * +from reports.ReportGitVersionsNew import * from reports.ReportOrgActivity import * from reports.ReportOrgCollaboration import * from reports.ReportOrgOwners import * @@ -79,6 +80,7 @@ def main(): ReportGitDownload(configuration, dataDirectory, metaStats).update() ReportGitRequests(configuration, dataDirectory, metaStats).update() ReportGitVersions(configuration, dataDirectory, metaStats).update() + ReportGitVersionsNew(configuration, dataDirectory, metaStats).update() ReportOrgActivity(configuration, dataDirectory, metaStats).update() ReportOrgCollaboration(configuration, dataDirectory, metaStats).update() ReportOrgOwners(configuration, dataDirectory, metaStats).update()