|
|
|
|
@ -614,6 +614,10 @@ class tmc_dict:
|
|
|
|
|
return True |
|
|
|
|
def add(self,message): |
|
|
|
|
self.list_lock.acquire() |
|
|
|
|
#check if duplicate of last message in list |
|
|
|
|
if len(self.message_list)>=1 and self.message_list[-1].tmc_hash==message.tmc_hash: |
|
|
|
|
self.message_list[-1].add_confirmation(message) |
|
|
|
|
else: |
|
|
|
|
self.message_list.append(message) |
|
|
|
|
self.list_lock.release() |
|
|
|
|
self.dict_lock.acquire() |
|
|
|
|
@ -789,7 +793,7 @@ class tmc_message:
|
|
|
|
|
def log_string(self): |
|
|
|
|
retstr="" |
|
|
|
|
try: |
|
|
|
|
retstr=str(self.event.updateClass)+": "+self.getTime()+": "+self.location_text()+": "+self.events_string()+"; "+self.info_str()+"; "+self.psn |
|
|
|
|
retstr=str(self.event.updateClass)+": "+self.getTime()+": "+self.location_text()+": "+self.events_string()+"; "+self.info_str()+"; "+str(list(self.psns))+"x%i"%self.confirmations |
|
|
|
|
except UnicodeDecodeError as e: |
|
|
|
|
print e |
|
|
|
|
code.interact(local=locals()) |
|
|
|
|
|