Skip to content

Commit de608e5

Browse files
authored
Merge pull request #23 from HSLdevcom/fix-oulu-problem
Remove + from shortname
2 parents b5495b6 + 6580620 commit de608e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gtfsrthttp2mqtt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def doGTFSRTPolling(self):
118118
full_topic = '{0}/{1}///{2}/{3}/{4}/{5}/{6}/{7}/{8}/{9}/{10}/{11}/{12}/{13}/{14}/{15}/'.format(
119119
self.baseMqttTopic, self.feedName, mode, route_id, direction_id,
120120
trip_headsign, trip_id, stop_id, start_time, vehicle_id, geohash_head, geohash_firstdeg,
121-
geohash_seconddeg, geohash_thirddeg, short_name, color)
121+
geohash_seconddeg, geohash_thirddeg, short_name, color).replace("+","").replace("#", "")
122122

123123
sernmesg = nfeedmsg.SerializeToString()
124124
self.client.publish(full_topic, sernmesg)

0 commit comments

Comments
 (0)