Skip to content

Commit

Permalink
Merge pull request #79 from andresdelfino/remove_capitalize_for_projects
Browse files Browse the repository at this point in the history
Remove capitalize for project names
  • Loading branch information
WinnaZ authored Jun 23, 2024
2 parents 0ed082a + 99bafc6 commit 5e297a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pycamp_bot/commands/announcements.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def announce(update: Update, context: CallbackContext) -> str:
text="Ingresá el Nombre del Proyecto a anunciar."
)
else:
project_list = "\n".join(p.name.capitalize() for p in state.projects)
project_list = "\n".join(p.name for p in state.projects)
await context.bot.send_message(
chat_id=update.message.chat_id,
text=f"""Ingresá el Nombre del Proyecto a anunciar.\n\nTienes los siguientes proyectos:\n{project_list}""",
Expand Down Expand Up @@ -93,7 +93,7 @@ async def announce(update: Update, context: CallbackContext) -> str:
else:
await context.bot.send_message(
chat_id=update.message.chat_id,
text=f"Anunciando el proyecto: *{escape_markdown(_projects[0].name).capitalize()}* !!!",
text=f"Anunciando el proyecto: *{escape_markdown(_projects[0].name)}* !!!",
parse_mode='MarkdownV2'
)
state.owner = _projects[0].owner.username
Expand Down Expand Up @@ -185,7 +185,7 @@ async def message_project(update: Update, context: CallbackContext) -> str:
try:
await context.bot.send_message(
chat_id=chat_id,
text=f'''Está por empezar el proyecto *"{escape_markdown(state.p_name).capitalize()}"* a cargo de *@{escape_markdown(state.owner)}*.\n*¿Dónde?* 👉🏼 {escape_markdown(state.lugar)}''',
text=f'''Está por empezar el proyecto *"{escape_markdown(state.p_name)}"* a cargo de *@{escape_markdown(state.owner)}*.\n*¿Dónde?* 👉🏼 {escape_markdown(state.lugar)}''',
parse_mode='MarkdownV2'
)
if update.message.from_user.username == state.owner:
Expand Down
2 changes: 1 addition & 1 deletion src/pycamp_bot/commands/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async def show_schedule(update, context):

for project in projects:
if project.slot_id == slot.id:
cronograma += f'*-* {slot.start}:00hs = *{escape_markdown(project.name).capitalize()}.*\n'
cronograma += f'*-* {slot.start}:00hs = *{escape_markdown(project.name)}.*\n'
cronograma += f'A cargo de 👉🏼 {"@" + escape_markdown(project.owner.username)}\n'

await context.bot.send_message(
Expand Down

0 comments on commit 5e297a6

Please sign in to comment.