mirror of
https://github.com/Haidra-Org/AI-Horde.git
synced 2026-11-06 05:17:31 +00:00
* creating LICENSES directory * adding headers with copyright and license info to various files * fix: switch to AGPL 3-or-later * feat: added all missing licenses * chore: linting * ci: Added reuse lint job --------- Co-authored-by: db0 <mail@dbzer0.com>
17 lines
334 B
Python
17 lines
334 B
Python
# SPDX-FileCopyrightText: 2022 Konstantinos Thoukydidis <mail@dbzer0.com>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
class Switch:
|
|
active = False
|
|
|
|
def activate(self):
|
|
self.active = True
|
|
|
|
def disable(self):
|
|
self.active = False
|
|
|
|
def toggle(self, value):
|
|
self.active = value
|