summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvuko <vuko@hackerspace.pl>2020-10-24 02:43:06 +0200
committervuko <vuko@hackerspace.pl>2020-10-24 02:43:06 +0200
commit38c214ed2580c577f7fcd24242e6436157794c2f (patch)
tree177cd7e3365e396e96c49d245bb64a740a1d8d25
parent91d06be5dfe3827bb8f781863db878959f807e48 (diff)
downloadcheckinator-38c214ed2580c577f7fcd24242e6436157794c2f.tar.gz
checkinator-38c214ed2580c577f7fcd24242e6436157794c2f.tar.bz2
checkinator-38c214ed2580c577f7fcd24242e6436157794c2f.zip
fix indents
-rw-r--r--at/webapp.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/at/webapp.py b/at/webapp.py
index d26eac4..711650e 100644
--- a/at/webapp.py
+++ b/at/webapp.py
@@ -31,14 +31,14 @@ class DevicesApi:
) for d in devices.clients
}
- def get_device(self, ip: str) -> Tuple[str, name]:
- devices = self._api.GetClients(ClientsRequest)
- for device in devices:
- if device.ip_address == ip:
- return (
- format_mac(device.hw_address), device.client_hostname
- )
- return None, None
+ def get_device(self, ip: str) -> Tuple[str, name]:
+ devices = self._api.GetClients(ClientsRequest)
+ for device in devices:
+ if device.ip_address == ip:
+ return (
+ format_mac(device.hw_address), device.client_hostname
+ )
+ return None, None
config_path = Path(os.environ.get("CHECKINATOR_WEB_CONFIG", 'web-config.yaml'))