fix formatting error

This commit is contained in:
Tomáš Mládek 2019-10-16 12:05:19 +02:00
parent 59d11fcb82
commit 0f8277f695

View file

@ -82,7 +82,7 @@ class DudleBot:
responses.append(PlanResponse.UNKNOWN)
user = update.message.from_user
name = user.username or ((user.first_name[0] + ". ") if user.first_name else '') + user.last_name
name = user.username or ((user.first_name[0] + ". ") if user.first_name else '') + (user.last_name or '')
context.chat_data['plan'].entries[user.id] = PlanEntry(name=name, responses=responses)