mirror of https://gitlab.com/bashrc2/epicyon
Check for snooze file
parent
5388c6d70a
commit
7241d5def8
|
@ -798,8 +798,9 @@ def personSnooze(baseDir: str,nickname: str,domain: str,snoozeActor: str) -> Non
|
||||||
print('ERROR: unknown account '+accountDir)
|
print('ERROR: unknown account '+accountDir)
|
||||||
return
|
return
|
||||||
snoozedFilename=accountDir+'/snoozed.txt'
|
snoozedFilename=accountDir+'/snoozed.txt'
|
||||||
if snoozeActor+' ' in open(snoozedFilename).read():
|
if os.path.isfile(snoozedFilename):
|
||||||
return
|
if snoozeActor+' ' in open(snoozedFilename).read():
|
||||||
|
return
|
||||||
snoozedFile=open(snoozedFilename, "a+")
|
snoozedFile=open(snoozedFilename, "a+")
|
||||||
if snoozedFile:
|
if snoozedFile:
|
||||||
snoozedFile.write(snoozeActor+' '+str(int(time.time()))+'\n')
|
snoozedFile.write(snoozeActor+' '+str(int(time.time()))+'\n')
|
||||||
|
|
Loading…
Reference in New Issue