mirror of https://gitlab.com/bashrc2/epicyon
File storing the last time a post was made
parent
0198b09782
commit
340d301ec4
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue