Specify months

merge-requests/3/merge
Bob Mottram 2019-11-13 15:16:24 +00:00
parent 383d633d7d
commit edc004b0ab
1 changed files with 2 additions and 2 deletions

View File

@ -388,12 +388,12 @@ def noOfAccounts(baseDir: str) -> bool:
accountCtr+=1
return accountCtr
def noOfActiveAccountsMonthly(baseDir: str) -> bool:
def noOfActiveAccountsMonthly(baseDir: str,months: int) -> bool:
"""Returns the number of accounts on the system this month
"""
accountCtr=0
currTime=int(time.time())
monthSeconds=60*60*24*30
monthSeconds=60*60*24*30*months
for subdir, dirs, files in os.walk(baseDir+'/accounts'):
for account in dirs:
if '@' in account: