Skip to content

Commit 52a28aa

Browse files
committed
Formating
1 parent ccf8151 commit 52a28aa

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

nxc/protocols/ldap/database.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from nxc.database import BaseDB, format_host_query
1111
from nxc.logger import nxc_logger
1212

13+
1314
class database(BaseDB):
1415
def __init__(self, db_engine):
1516
self.UsersTable = None
@@ -56,13 +57,7 @@ def reflect_tables(self):
5657
)
5758
sys.exit()
5859

59-
def add_host(
60-
self,
61-
ip,
62-
hostname,
63-
domain,
64-
os
65-
):
60+
def add_host(self, ip, hostname, domain, os):
6661
"""Check if this host has already been added to the database, if not, add it in."""
6762
hosts = []
6863
updated_ids = []
@@ -236,4 +231,4 @@ def is_host_valid(self, host_id):
236231
"""Check if this host ID is valid."""
237232
q = select(self.HostsTable).filter(self.HostsTable.c.id == host_id)
238233
results = self.db_execute(q).all()
239-
return len(results) > 0
234+
return len(results) > 0

0 commit comments

Comments
 (0)