changeset 530:93e740bc730f

Clean up the source code
author Magnus Schieder <mschieder@intevation.de>
date Tue, 11 Jun 2019 13:11:00 +0200
parents 9d27713164c9
children 47c17df47500
files getan/states.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Tue Jun 04 12:04:14 2019 +0200
+++ b/getan/states.py	Tue Jun 11 13:11:00 2019 +0200
@@ -455,12 +455,13 @@
         self.project = project
         self.history_position = - 1
 
+
     def keypress(self, size, key):
         """ Direct key to frame of GetanView """
 
         self.controller.view.frame.keypress(size, key)
 
-        entries = self.project.backend.load_entries(self.project.id)
+        entries = self.project.entries
         if key == 'up':
             if self.history_position  < len(entries) - 1:
                 self.history_position  = self.history_position + 1
@@ -482,7 +483,6 @@
                             len(entries[self.history_position].desc))
 
 
-
     def enter(self):
         text = self.footer.get_edit_text()
         self.controller.stop_project(text)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)