diff options
author | nico <nico@magicbroccoli.de> | 2019-11-08 16:28:57 +0100 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2019-11-08 16:28:57 +0100 |
commit | 2b4b95a42ffabeb650484b1319ae599831dbd899 (patch) | |
tree | ba887dd8a2b2c6df0818b9021b12102bc0db41a0 /main.py | |
parent | 0a4d8af9a317511982af7bba7e07ae341366afa1 (diff) |
* minor restructuring
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |