main
Bob Mottram 2024-04-10 11:43:24 +01:00
parent 2f69fe40f0
commit 4b9f21a192
1 changed files with 3 additions and 3 deletions

View File

@ -72,6 +72,7 @@ from tests import test_update_actor
from tests import run_all_tests from tests import run_all_tests
from auth import store_basic_credentials from auth import store_basic_credentials
from auth import create_password from auth import create_password
from utils import string_ends_with
from utils import remove_html from utils import remove_html
from utils import remove_eol from utils import remove_eol
from utils import text_in_file from utils import text_in_file
@ -3101,9 +3102,8 @@ def _command_options() -> None:
sys.exit() sys.exit()
if argb.archive: if argb.archive:
if argb.archive.lower().endswith('null') or \ archive_lower = argb.archive.lower()
argb.archive.lower().endswith('delete') or \ if string_ends_with(archive_lower, ('null', 'delete', 'none')):
argb.archive.lower().endswith('none'):
argb.archive = None argb.archive = None
print('Archiving with deletion of old posts...') print('Archiving with deletion of old posts...')
else: else: