added crud opertions for tag entity

This commit is contained in:
Hosein
2026-01-01 23:34:44 +03:30
parent 389a763571
commit 7b6c2a3245
8 changed files with 324 additions and 6 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ def register(bot: TeleBot):
def create_course(message, data):
if Courses.createCourse(**data):
bot.send_message(message.chat.id, "Teacher created!",
bot.send_message(message.chat.id, "Course created!",
reply_markup=startMarkup())
else:
bot.send_message(
@@ -132,7 +132,7 @@ def register(bot: TeleBot):
new_value = message.text
# Handle cancellation
if new_value.lower() == 'cancel' or new_value == f"{previous_value} (current)":
if new_value.lower() == 'cancel' or new_value == f"{previous_value}":
msg = "Action cancelled." if new_value.lower(
) == 'cancel' else f"No changes made to {field}."
bot.send_message(message.chat.id, msg, reply_markup=startMarkup())