MCPcopy
hub / github.com/anmol098/waka-readme-stats / getQuarter

Method getQuarter

loc.py:47–54  ·  view source on GitHub ↗
(self, timeStamp)

Source from the content-addressed store, hash-verified

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'])

Callers 1

getCommitStatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected