From f062ec8e8eb44476520c04b860c346f8b67a8a13 Mon Sep 17 00:00:00 2001 From: Florian Schweikert Date: Fri, 7 Oct 2011 02:28:43 +0200 Subject: [PATCH] skip station if terminal --- itip | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itip b/itip index 54ed263..049a17d 100755 --- a/itip +++ b/itip @@ -31,6 +31,9 @@ if l and l in lines: for station in stations[key]: if s: if s.startswith(station[0]) or station[0].startswith(s): + if station[0] == key: + # skip station if destination + continue # FIXME print '* %s\n %s .....' % (key, station[0]), itip.get_departures(station[1]) else: -- 1.7.9.5