diff --git a/overseer/apis/v1/base.py b/overseer/apis/v1/base.py index 5263e3d..b00c2f4 100644 --- a/overseer/apis/v1/base.py +++ b/overseer/apis/v1/base.py @@ -20,8 +20,8 @@ class SusInstances(Resource): get_parser = reqparse.RequestParser() get_parser.add_argument("Client-Agent", default="unknown:0:unknown", type=str, required=False, help="The client name and version.", location="headers") get_parser.add_argument("user_to_post_ratio", required=False, default=20, type=int, help="The amount of local users / amount of local posts to consider suspicious", location="args") - get_parser.add_argument("csv", required=False, default=False, type=bool, help="Set to true to return just the domains as a csv. Mutually exclusive with domains", location="args") - get_parser.add_argument("domains", required=False, default=False, type=bool, help="Set to true to return just the domains as a list. Mutually exclusive with csv", location="args") + get_parser.add_argument("csv", required=False, type=bool, help="Set to true to return just the domains as a csv. Mutually exclusive with domains", location="args") + get_parser.add_argument("domains", required=False, type=bool, help="Set to true to return just the domains as a list. Mutually exclusive with csv", location="args") @api.expect(get_parser) @logger.catch(reraise=True) @@ -32,7 +32,6 @@ class SusInstances(Resource): ''' self.args = self.get_parser.parse_args() sus_instances = retrieve_suspicious_instances(self.args.user_to_post_ratio) - logger.debug(self.args) if self.args.csv: return {"csv": ",".join([instance["domain"] for instance in sus_instances])},200 if self.args.domains: