home · contact · privacy
Move "delete" flag in files.flags into highest bit. master
authorChristian Heller <c.heller@plomlompom.de>
Sun, 1 Dec 2024 01:43:50 +0000 (02:43 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 1 Dec 2024 01:43:50 +0000 (02:43 +0100)
src/ytplom/misc.py

index c0aa85ffc9ec30cfe32a32428f8f78820ade1e9f..3fd8218a8c60ca112ca9cce13436b683cf3dfe09 100644 (file)
@@ -77,7 +77,7 @@ TIMESTAMP_FMT = '%Y-%m-%d %H:%M:%S.%f'
 LEGAL_EXTENSIONS = {'webm', 'mp4', 'mkv'}
 NAME_INSTALLER = Path('install.sh')
 FILE_FLAGS: dict[FlagName, FlagsInt] = {
 LEGAL_EXTENSIONS = {'webm', 'mp4', 'mkv'}
 NAME_INSTALLER = Path('install.sh')
 FILE_FLAGS: dict[FlagName, FlagsInt] = {
-  FlagName('delete'): FlagsInt(1 << 62)
+  FlagName('delete'): FlagsInt(-(1 << 63))
 }
 
 
 }