make add/remove more verbose
This commit is contained in:
parent
e586c6aa79
commit
4ea9740849
@ -19,6 +19,9 @@ def addScreenToIgnoreList(ignoreFileName = '/tmp/fenrirSuspend', screen = '1', u
|
|||||||
|
|
||||||
if not screen in ignoreScreens:
|
if not screen in ignoreScreens:
|
||||||
ignoreScreens.extend(screen)
|
ignoreScreens.extend(screen)
|
||||||
|
print('Add screen {0} to ignore file:{1}'.format(screen, ignoreFileName))
|
||||||
|
else:
|
||||||
|
print('Screen {0} already exists in ignore file:{1}'.format(screen, ignoreFileName))
|
||||||
ignoreScreensStr = ','.join(ignoreScreens)
|
ignoreScreensStr = ','.join(ignoreScreens)
|
||||||
|
|
||||||
with open(ignoreFileName, 'w') as fp:
|
with open(ignoreFileName, 'w') as fp:
|
||||||
|
@ -19,6 +19,9 @@ def removeScreenFromIgnoreList(ignoreFileName = '/tmp/fenrirSuspend', screen = '
|
|||||||
|
|
||||||
if screen in ignoreScreens:
|
if screen in ignoreScreens:
|
||||||
ignoreScreens.remove(screen)
|
ignoreScreens.remove(screen)
|
||||||
|
print('Remove screen {0} to ignore file:{1}'.format(screen, ignoreFileName))
|
||||||
|
else:
|
||||||
|
print('Screen {0} does not exists in ignore file:{1}'.format(screen, ignoreFileName))
|
||||||
ignoreScreensStr = ','.join(ignoreScreens)
|
ignoreScreensStr = ','.join(ignoreScreens)
|
||||||
|
|
||||||
with open(ignoreFileName, 'w') as fp:
|
with open(ignoreFileName, 'w') as fp:
|
||||||
|
Loading…
Reference in New Issue
Block a user