changed get_departure, return list of Departure objects with line,
[pywienerlinien] / gotovienna-qml
index 6a94bcf..75e3803 100755 (executable)
@@ -7,9 +7,9 @@ __version__ = '1.0'
 __website__ = 'https://github.com/kelvan/gotoVienna/'
 __license__ = 'GNU General Public License v3 or later'
 
-from PySide.QtCore import *
-from PySide.QtGui import *
-from PySide.QtDeclarative import *
+from PySide.QtCore import QAbstractListModel, QModelIndex, QObject, Slot, Signal
+from PySide.QtGui import QApplication
+from PySide.QtDeclarative import QDeclarativeView
 
 from gotovienna.utils import *
 from gotovienna.realtime import *
@@ -93,7 +93,7 @@ class Gui(QObject):
     @Slot(str)
     def load_departures(self, url):
         def load_async():
-            self.current_departures = [str(x) for x in
+            self.current_departures = [x.get_ftime() for x in
                     self.itip.get_departures(url)]
             print self.current_departures
             self.departuresLoaded.emit()