Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pycamp_bot/commands/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,16 @@ async def check_day_tab(day, slots, cronograma, i):
async def show_schedule(update, context):
slots = Slot.select()
projects = Project.select()
cronograma = "*Cronograma:* \n"
cronograma = ''

for i, slot in enumerate(slots):
day = DIAS[slot.code[0]]
cronograma = await check_day_tab(day, slots, cronograma, i)

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

await context.bot.send_message(
chat_id=update.message.chat_id,
Expand Down