Commit 66f1f5e9 authored by Barkin Simsek's avatar Barkin Simsek 🐢
Browse files

Fix typo

parent 76d600f7
......@@ -38,14 +38,14 @@ services:
- captchamonitor
- --worker
cm-analyze:
cm-analyzer:
<<: *captchamonitor_base_service
restart: always
entrypoint:
- python
- -m
- captchamonitor
- --analyze
- --analyzer
cm-update:
<<: *captchamonitor_base_service
......
......@@ -17,7 +17,7 @@ parser.add_argument(
)
parser.add_argument(
"-a",
"--analyze",
"--analyzer",
action="store_true",
default=False,
help="Run an instance of data analyzer",
......@@ -45,9 +45,9 @@ cm = CaptchaMonitor()
if args.worker:
logger.info("Intializing CAPTCHA Monitor in worker mode")
cm.worker()
elif args.analyse:
elif args.analyzer:
logger.info("Intializing CAPTCHA Monitor in data analysis mode")
cm.analyze()
cm.analyzer()
elif args.update:
logger.info("Intializing CAPTCHA Monitor in update mode")
schedule.every().day.do(cm.update_domains)
......
......@@ -114,7 +114,7 @@ class CaptchaMonitor:
db_session=self.__db_session,
)
def analyze(self) -> None:
def analyzer(self) -> None:
"""
Analyzes the data recorded in the database
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment