mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 11:12:15 +03:00
minor fixing about message format
This commit is contained in:
parent
39416fcb65
commit
ac99ea633e
2 changed files with 3 additions and 3 deletions
|
@ -282,7 +282,7 @@ class AhenkDeamon(BaseDaemon):
|
|||
time.sleep(1)
|
||||
|
||||
if agreement_choice is not None:
|
||||
messenger.send_direct_message(message_manager.agreement_answer_msg(username, agreement_choice))
|
||||
messenger.send_direct_message(message_manager.agreement_answer_msg(username, str(agreement_choice).lower()))
|
||||
else:
|
||||
agreement_choice = True
|
||||
|
||||
|
|
|
@ -152,9 +152,9 @@ class Messaging(object):
|
|||
|
||||
def agreement_answer_msg(self, username, answer):
|
||||
data = {}
|
||||
data['type'] = 'AGREEMENT_ANSWER'
|
||||
data['type'] = 'AGREEMENT_STATUS'
|
||||
data['username'] = username
|
||||
data['answer'] = str(answer).upper()
|
||||
data['accepted'] = str(answer).upper()
|
||||
data['timestamp'] = Util.timestamp()
|
||||
contract_content = self.db_service.select_one_result('contract', 'content', 'id =(select MAX(id) from contract)')
|
||||
if contract_content is not None and contract_content != '':
|
||||
|
|
Loading…
Reference in a new issue