MCPcopy Index your code
hub / github.com/geekcomputers/Python / is_service_present

Function is_service_present

password_manager.py:74–81  ·  view source on GitHub ↗
(service_)

Source from the content-addressed store, hash-verified

72
73
74def is_service_present(service_):
75 cursor_.execute("SELECT SERVICE from STORE where SERVICE = ?", (service_,))
76 data = cursor_.fetchall()
77 if len(data) == 0:
78 print("There is no service named %s" % service_)
79 return False
80 else:
81 return True
82
83
84if connect == ADMIN_PASSWORD:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected