File storing the last time a post was made

merge-requests/3/merge
Bob Mottram 2019-11-13 15:28:37 +00:00
parent 0198b09782
commit 340d301ec4
1 changed files with 6 additions and 1 deletions

View File

@ -2834,7 +2834,12 @@ class PubServer(BaseHTTPRequestHandler):
else: else:
return -1 return -1
lastUsedFilename=self.server.baseDir+'/accounts/'+nickname+'@'+self.server.domain+'/.lastUsed' # Store a file which contains the time in seconds
# since epoch when an attempt to post something was made.
# This is then used for active monthly users counts
lastUsedFilename= \
self.server.baseDir+'/accounts/'+ \
nickname+'@'+self.server.domain+'/.lastUsed'
try: try:
lastUsedFile=open(lastUsedFilename,'w') lastUsedFile=open(lastUsedFilename,'w')
if lastUsedFile: if lastUsedFile: