(self, timeStamp)
| 45 | return request.json() |
| 46 | |
| 47 | def getQuarter(self, timeStamp): |
| 48 | month = datetime.datetime.fromtimestamp(timeStamp).month |
| 49 | if month >= 1 and month <= 4: |
| 50 | return 1 |
| 51 | elif month >= 5 and month <= 8: |
| 52 | return 2 |
| 53 | elif month >= 9 and month <= 12: |
| 54 | return 3 |
| 55 | |
| 56 | def getCommitStat(self, repoDetails, yearly_data): |
| 57 | result = self.run_query_v3(repoDetails['nameWithOwner']) |