summaryrefslogtreecommitdiff
path: root/ATRI/service/dormant.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2021-02-06 00:32:26 +0800
committerKyomotoi <[email protected]>2021-02-06 00:32:26 +0800
commitf5ceb8927f2e7f2a9e29d62c8e4cef876f917249 (patch)
tree40b9dcd6b7d3db486054e3aa9b5a04d25fa2284e /ATRI/service/dormant.py
parenteb52fab79ada7efe6191e3a5f90179766feaded0 (diff)
downloadATRI-f5ceb8927f2e7f2a9e29d62c8e4cef876f917249.tar.gz
ATRI-f5ceb8927f2e7f2a9e29d62c8e4cef876f917249.tar.bz2
ATRI-f5ceb8927f2e7f2a9e29d62c8e4cef876f917249.zip
🏗 💩 更改项目结构,修复啥b BUG
Diffstat (limited to 'ATRI/service/dormant.py')
-rw-r--r--ATRI/service/dormant.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/ATRI/service/dormant.py b/ATRI/service/dormant.py
deleted file mode 100644
index 7482d53..0000000
--- a/ATRI/service/dormant.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from ATRI.exceptions import InvalidSetting
-
-from . import state
-
-class Dormant:
- @staticmethod
- def is_sleep() -> bool:
- return True if state != 1 else False
-
- @staticmethod
- def cont_wake(_type: bool) -> None:
- global state
- try:
- if _type:
- state = 0
- else:
- state = 1
- except InvalidSetting:
- raise InvalidSetting('Failed to modify variable!')