mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
multiple edits
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -67,6 +67,8 @@ def update_data(last_session):
|
|||||||
brain = json.load(fp)
|
brain = json.load(fp)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
enabled = [name for name, options in config['main']['plugins'].items() if
|
||||||
|
'enabled' in options and options['enabled']]
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
'session': {
|
'session': {
|
||||||
@ -84,7 +86,8 @@ def update_data(last_session):
|
|||||||
'uname': subprocess.getoutput("uname -a"),
|
'uname': subprocess.getoutput("uname -a"),
|
||||||
'brain': brain,
|
'brain': brain,
|
||||||
'version': pwnagotchi.__version__,
|
'version': pwnagotchi.__version__,
|
||||||
'build': "Pwnagotchi-Torch by Jayofelony"
|
'build': "Pwnagotchi-Torch by Jayofelony",
|
||||||
|
'plugins': enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
logging.debug("updating grid data: %s" % data)
|
logging.debug("updating grid data: %s" % data)
|
||||||
|
Reference in New Issue
Block a user