d16f23b6 by Barry

Bug fixes for deliveries.

1 parent f0754003
1 {"Rui": {"Everybody": {"delivery_time": "2015/12/04 00:00:00", "message": "You are a faggot", "channel": "47934985176354816"}}}
...\ No newline at end of file ...\ No newline at end of file
1 {"<@49237234515181568>": {"<@47934670406422528>": {"delivery_time": "2047/08/11 18:39:12", "message": "ur a fgt", "user_id": "49237234515181568", "channel": "47934985176354816"}}, "Rui": {"Everybody": {"delivery_time": "2015/12/04 00:00:00", "message": "You are a faggot", "channel": "47934985176354816"}}, "<@47934670406422528>": {"<@121404665727418368>": {"delivery_time": "2015/12/10 16:53:42", "message": "You will never be tall.", "user_id": "47934670406422528", "channel": "47934985176354816"}}, "<@48148712194576384>": {"<@121404665727418368>": {"delivery_time": "2019/02/03 02:38:24", "message": "u gay", "user_id": "48148712194576384", "channel": "47934985176354816"}}}
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -102,7 +102,7 @@ def on_status(member): ...@@ -102,7 +102,7 @@ def on_status(member):
102 return 102 return
103 103
104 open(member_status, 'wb+').write(jdata.encode('utf8')) 104 open(member_status, 'wb+').write(jdata.encode('utf8'))
105 105 check_msg_queue()
106 106
107 def get_game_names(game_id_list): 107 def get_game_names(game_id_list):
108 json_data=open(games_file).read() 108 json_data=open(games_file).read()
...@@ -154,6 +154,8 @@ def check_msg_queue(): ...@@ -154,6 +154,8 @@ def check_msg_queue():
154 offline = True 154 offline = True
155 break 155 break
156 if offline: 156 if offline:
157 new_data[username] = {}
158 new_data[username][author] = data[username][author]
157 break 159 break
158 channel = Object(data[username][author]['channel']) 160 channel = Object(data[username][author]['channel'])
159 message = data[username][author]['message'] 161 message = data[username][author]['message']
......