creating an instance of reqhand in config

This commit is contained in:
sanjayk03-dev
2024-01-22 12:55:16 +05:30
parent 9ccba5de6d
commit e6e6a31bf0

View File

@@ -55,7 +55,8 @@ class Config(object):
except Exception: self.log.exception('Internal error: Failed to load config template')
def update_gcode_list(self):
self.values['gcodeList'] = bbctrl.RequestHandler.get_ctrl().state.return_files()
reqHand=bbctrl.RequestHandler()
self.values['gcodeList'] = reqHand.get_ctrl().state.return_files()
def load(self):