We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 203744d commit c8af2fdCopy full SHA for c8af2fd
src/pycamp_bot/commands/projects.py
@@ -452,9 +452,17 @@ async def delete_project(update, context):
452
async def show_projects(update, context):
453
"""Show available projects"""
454
projects = Project.select()
455
+ PROJECT_FIELDS = [
456
+ '*{}*',
457
+ 'Owner: @{}',
458
+ 'Temática: {}',
459
+ 'Nivel: {}',
460
+ 'Repositorio: {}',
461
+ 'Grupo de Telegram: {}',
462
+ ]
463
text = []
464
for project in projects:
- project_text = "*{}*\n Owner: @{}\n Temática: {}\n Nivel: {}\n Repositorio: {}\n Grupo de Telegram: {}".format(
465
+ project_text = '\n'.join(PROJECT_FIELDS).format(
466
escape_markdown(project.name),
467
escape_markdown(project.owner.username),
468
escape_markdown(project.topic),
0 commit comments