Skip to content

Commit

Permalink
fix too long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
prohde committed Aug 2, 2023
1 parent 3e853b3 commit 42a1d93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions FedSDM/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ def __init__(self, query_endpoint: str, update_endpoint: str = None, username: s
self.query_endpoint = query_endpoint
self.update_endpoint = update_endpoint if update_endpoint is not None else query_endpoint

server = self.query_endpoint.split('https://')[1] if 'https' in self.query_endpoint else self.query_endpoint.split('http://')[1]
server = self.query_endpoint.split('https://')[1] if 'https' in self.query_endpoint \
else self.query_endpoint.split('http://')[1]
(server, path) = server.split('/', 1)
self.query_server = server
self.query_path = path

server = self.update_endpoint.split('https://')[1] if 'https' in self.update_endpoint else self.update_endpoint.split('http://')[1]
server = self.update_endpoint.split('https://')[1] if 'https' in self.update_endpoint \
else self.update_endpoint.split('http://')[1]
(server, path) = server.split('/', 1)
self.update_server = server
self.update_path = path
Expand Down

0 comments on commit 42a1d93

Please sign in to comment.