From 69dd60cc024063daf1591168a64a32e771bd7f1b Mon Sep 17 00:00:00 2001 From: Mikhail Kirillov Date: Fri, 11 Oct 2024 01:53:24 +0400 Subject: Task #30. Allow anyone create or edit upcoming event --- strings.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'strings.py') diff --git a/strings.py b/strings.py index 9f1ffff..59231b2 100644 --- a/strings.py +++ b/strings.py @@ -19,7 +19,7 @@ FETCHING_MOVIE = "Movie with ID {id} is being fetched: https://imdb.com/title/tt FETCHING_ERROR = "Couldn't fetch movie or it is not found. Provide IMDB id, for example: 0133093" MOVIE_REMOVE = "Movie \"{title}\" with id {id} has been removed" MOVIE_SET = "Movie \"{title}\" proposed by {user} is succesfully set as next to watch" -MOVIES_LIST = "\"{title}\" IMDB:{id} by {user} \n" +MOVIES_LIST = "\"{title}\" by {user} \n" NO_MOVIES = "No movies. You can add movie if you are next to choose (see /next). Too add a movie use /movie " USER_NOT_FOUND = "Provided user ({user}) not found. Check /list" @@ -54,14 +54,18 @@ Second argument is not provided and previous event doesn't has it. EVENT_CREATED = "Event \"{movie}\" at {when} was created" EVENT_EDITED = "Event \"{movie}\" at {old_when} in {old_where} was modified to {when} in {where}" -EVENTS_LIST = "[{finished}] \"{movie}\" by {user} at {when} in {where}\n" +EVENTS_LIST = "[{status}] \"{movie}\" by {user} at {when} in {where}\n" +EVENTS_LIST_MOVIE_SET = "[{status}] \"{movie}\" by {user}\n" +EVENTS_LIST_PLANNING = "[{status}] by {user}\n" EVENT_MOVIE_NOT_CHOOSEN = "You should choose a film first using /movie " EVENT_MOVIE_NOT_SET = "" -EVENT_USER_HAD_EVENT = "User {user} have already finished event, so he can't choose twice. See /next or /list" +EVENT_USER_HAD_MOVIE = "User {user} can't set the sa, so he can't choose twice. See /next or /list" +EVENT_FINISHED = "Event is finished. Use /next to see who chooses a film now." NO_EVENTS = "No events." UNDEFINED_ERROR = "Exception: something unexpected happened. Check the logs." +ANNOUNCEMENT_EVENT_NEEDS_EDITING = "Event is missing either Movie, When or Where fields. See /event" ANNOUNCEMENT_FINISHED_EVENT = "There is no planned events. Create one using /event " ANNOUNCEMENT_TEMPLATE = """ {intro} -- cgit v1.2.3