From 2b4b95a42ffabeb650484b1319ae599831dbd899 Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 8 Nov 2019 16:28:57 +0100 Subject: * minor restructuring --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index cf417d5..e528d3b 100755 --- a/main.py +++ b/main.py @@ -8,7 +8,7 @@ import sys import tabulate -from ingest import Ingest +from ingest import IngestLogfile from report import ReportDomain @@ -25,6 +25,7 @@ class AbuseReport: self.conn = sqlite3.connect("/".join([self.path, "spam.db"])) self.Report = ReportDomain(self.conn) + self.Ingest = IngestLogfile(self.conn) def main(self): """main method guiding the actions to take""" @@ -37,10 +38,10 @@ class AbuseReport: elif self.infile: # infile set -> ingest - Ingest(self.conn, self.infile) + self.Ingest.read(self.infile) # close sqlite connection - self.conn.close() + self.conn.close() def check(self): # check if the minimum requirements are met -- cgit v1.2.3-18-g5258