From 9640f88d2f5ffa13ec1dfd291e226a5333b4dbd6 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sun, 24 Sep 2023 07:24:06 +0200 Subject: [PATCH] multiple edits Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/__init__.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/__init__.py b/pwnagotchi/plugins/__init__.py index c5d2efd7..8f4ed73c 100644 --- a/pwnagotchi/plugins/__init__.py +++ b/pwnagotchi/plugins/__init__.py @@ -130,8 +130,21 @@ def load_from_path(path, enabled=()): def load(config): enabled = [name for name, options in config['main']['plugins'].items() if 'enabled' in options and options['enabled']] - - pwnagotchi.grid.update_data(None, enabled) + data = { + 'session': { + 'duration': "", + 'epochs': "", + 'train_epochs': "", + 'avg_reward': "", + 'min_reward': "", + 'max_reward': "", + 'deauthed': "", + 'associated': "", + 'handshakes': "", + 'peers': "", + } + } + pwnagotchi.grid.update_data(data, enabled) # load default plugins load_from_path(default_path, enabled=enabled)