MCPcopy
hub / github.com/WebODM/WebODM / to_web_protocol

Function to_web_protocol

coreplugins/dronedb/api_views.py:58–59  ·  view source on GitHub ↗
(registry_url)

Source from the content-addressed store, hash-verified

56 return DroneDB(registry_url, username, password, token, lambda token: update_token(request, token))
57
58def to_web_protocol(registry_url):
59 return registry_url.replace('ddb+unsafe://', 'http://').replace('ddb://', 'https://').rstrip('/')
60
61class CheckCredentialsTaskView(TaskView):
62 def post(self, request):

Callers 1

postMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected