fix formatting error
This commit is contained in:
parent
59d11fcb82
commit
0f8277f695
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class DudleBot:
|
||||||
responses.append(PlanResponse.UNKNOWN)
|
responses.append(PlanResponse.UNKNOWN)
|
||||||
|
|
||||||
user = update.message.from_user
|
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)
|
context.chat_data['plan'].entries[user.id] = PlanEntry(name=name, responses=responses)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue