MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / set_requires_https

Method set_requires_https

app/db/settings.py:25–28  ·  view source on GitHub ↗
(self, should_be_required)

Source from the content-addressed store, hash-verified

23 'INSERT OR IGNORE INTO settings(id) VALUES (?)', [_ROW_ID])
24
25 def set_requires_https(self, should_be_required):
26 self._db_connection.execute(
27 'UPDATE settings SET requires_https=? WHERE id=?',
28 [should_be_required, _ROW_ID])
29
30 def requires_https(self):
31 """Retrieves the setting whether HTTPS connections are required.

Calls

no outgoing calls