From 2b69ef5cac62e5167185556f248e4618e24dd9aa Mon Sep 17 00:00:00 2001 From: "Fabian P. Schmidt" Date: Wed, 28 Sep 2016 11:41:44 +0200 Subject: [PATCH] import_logfile: Add reference_date argument --- ogn/gateway/manage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ogn/gateway/manage.py b/ogn/gateway/manage.py index ea5d70a..2dfff02 100644 --- a/ogn/gateway/manage.py +++ b/ogn/gateway/manage.py @@ -43,8 +43,8 @@ def run(aprs_user='anon-dev', logfile='main.log', loglevel='INFO'): @manager.command -def import_logfile(ogn_logfile, logfile='main.log', loglevel='INFO'): - """Import OGN-data from ogn-log-files .""" +def import_logfile(ogn_logfile, reference_date, logfile='main.log', loglevel='INFO'): + """Import OGN-data from ogn-log-files . Reference date must be given in YYYY-MM-DD.""" # Check if filename exists try: @@ -61,7 +61,7 @@ def import_logfile(ogn_logfile, logfile='main.log', loglevel='INFO'): print('Start importing ogn-logfile') for line in f: - process_beacon(line) + process_beacon(line, reference_date) f.close() logging.shutdown()