mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-29 04:51:17 +08:00
22 lines
503 B
Python
22 lines
503 B
Python
from conf import settings
|
|
|
|
bool_group = [
|
|
settings.enable_group_tag,
|
|
settings.get_rule_debug,
|
|
settings.debug_mode,
|
|
settings.enable_eps_complete,
|
|
settings.season_one_tag
|
|
]
|
|
|
|
|
|
def init_switch():
|
|
if settings.sleep_time is str:
|
|
settings.sleep_time = float(settings.sleep_time)
|
|
for switch in bool_group:
|
|
if switch is str:
|
|
switch = switch.lower() in ("true", "t", "i")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
settings.init()
|
|
print(type(settings.debug_mode)) |