1
0
mirror of https://github.com/avatao-content/baseimage-tutorial-framework synced 2025-04-07 18:42:40 +00:00

Store length of history list requested in every case

This commit is contained in:
Kristóf Tóth 2018-03-03 23:02:49 +01:00
parent cc964fdf27
commit ab76e3d024

@ -27,5 +27,6 @@ class TerminadoEventHandler(TriggerlessEventHandler):
self.terminado_server.pty.write(data['shellcmd'])
def read(self, data):
data['history'] = self.monitor.history[-int(data.get('count', 1)):]
data['count'] = int(data.get('count', 1))
data['history'] = self.monitor.history[-data['count']:]
return data