From b1f5a379782ffa5b981446e4dc7db9ce87122bcf Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Tue, 10 Oct 2023 13:38:38 +0000 Subject: [PATCH] Upload New File --- slixfeed/settings.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 slixfeed/settings.py diff --git a/slixfeed/settings.py b/slixfeed/settings.py new file mode 100644 index 0000000..9713db4 --- /dev/null +++ b/slixfeed/settings.py @@ -0,0 +1,14 @@ +async def get_value_default(key): + """ + Get settings default value. + + :param key: "enabled", "interval", "quantum". + :return: Integer. + """ + if key == "enabled": + result = 1 + elif key == "quantum": + result = 4 + elif key == "interval": + result = 30 + return result