From 11d164cdb4fa623a97dfddff2dfa362fc257762b Mon Sep 17 00:00:00 2001 From: csrichter Date: Wed, 7 Jun 2017 15:22:39 +0200 Subject: [PATCH] tmc_direction to multistr instead of location_text --- python/tmc_classes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/tmc_classes.py b/python/tmc_classes.py index b9b196b..05df2c7 100644 --- a/python/tmc_classes.py +++ b/python/tmc_classes.py @@ -671,7 +671,7 @@ class tmc_dict: color="gray" if message.location.has_koord: if loc==None:#first message at this location - map_tag+='

'%message.location.lcn + map_tag+='

'%(message.location.lcn) map_tag+=message.location_text() map_tag+='

' if message.cancellation_time==None: @@ -779,6 +779,7 @@ class tmc_message: except AttributeError: multi="[multi incomplete]" #print("got multistring") + multi+=", dir:%i"%self.tmc_dir return str(multi) def info_str(self): info="" @@ -837,7 +838,7 @@ class tmc_message: text+=templates[language+"_2b"].format(D=self.location.first_name) else: text+=templates[language+"_2a"].format(D=self.location.first_name,E=offset_loc_name) - text+=", dir:"+str(self.tmc_dir) + #text+=", dir:%i"%self.tmc_dir #LocCode: RefLine: RoadNr #A #LocCode:RefLine:Name2 @@ -967,7 +968,7 @@ class tmc_message: self.tmc_DP=data.uint #label==1: control codes elif label==1 and data.uint==2: - last_event.change_directionality#change directionality + last_event.change_directionality()#change directionality of event elif label==1 and data.uint==5: self.tmc_D=1#set diversion bit elif label==1 and data.uint==6: