diff --git a/server/szuru-admin b/server/szuru-admin index ee5fa69f..dd0279e7 100755 --- a/server/szuru-admin +++ b/server/szuru-admin @@ -101,12 +101,9 @@ def regenerate_thumbnails() -> None: def delete_posts(parameters: list) -> None: - verification: str = "y" + verification: str = input("Do you really want to delete all posts with the given ID's [y/n]: ").lower() - while "" == verification: - verification = input("Do you really want to delete all posts with the given ID's [y/n]: ") - - if "y" != verification.lower(): + if "y" != verification: return def delete_one_post(post_id: int) -> None: @@ -175,8 +172,9 @@ def main() -> None: "--delete-posts", metavar="", nargs='+', - help="Will delete all posts with the given id's, all id's are seperated by a space. " - "If you want to delete a range of posts use it like: 37-47 (including the first and last number)" + help="Delete all posts with the specified ID, separated by a space. " + "Multiple posts can be deleted at once by specifying them as follows, " + "including the upper and lower limits: 37-47" ) command = parser_top.parse_args()