From 8ef1f0f377771e6300a38d1aca66cbd29c385bce Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Mon, 7 Oct 2019 00:27:22 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/plugins/default/api.py | 1 - scripts/pypi_upload.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/api.py b/pwnagotchi/plugins/default/api.py index 6747d95..480f07c 100644 --- a/pwnagotchi/plugins/default/api.py +++ b/pwnagotchi/plugins/default/api.py @@ -38,7 +38,6 @@ def on_internet_available(ui, keypair, config, log): } logging.info("api: enrolling unit to %s ..." % api_address) - r = requests.post(api_address, json=enroll) if r.status_code == 200: token = r.json() diff --git a/scripts/pypi_upload.sh b/scripts/pypi_upload.sh index 4a71125..265a56a 100755 --- a/scripts/pypi_upload.sh +++ b/scripts/pypi_upload.sh @@ -1,6 +1,6 @@ #!/bin/bash -rm -rf build dist ergo_nn.egg-info && +rm -rf build dist pwnagotchi.egg-info && python3 setup.py sdist bdist_wheel && clear && twine upload dist/*