From 08cacd8011dbac5a3c5502fd3724d8fd11927a9c Mon Sep 17 00:00:00 2001 From: Jan Smejkal Date: Tue, 27 Aug 2024 17:57:52 +0200 Subject: [PATCH] feat(args): Add HBI DB args, fix typo in get_db_times --- opl/args.py | 4 ++++ opl/get_db_times.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opl/args.py b/opl/args.py index d63b61a..0b82887 100644 --- a/opl/args.py +++ b/opl/args.py @@ -86,6 +86,10 @@ def add_ros_db_opts(parser): _add_generic_db_opts(parser, "ros") +def add_hbi_db_opts(parser): + _add_generic_db_opts(parser, "hbi") + + def add_kafka_opts(parser): parser.add_argument( "--kafka-host", diff --git a/opl/get_db_times.py b/opl/get_db_times.py index 4c3aa73..c5b69a9 100755 --- a/opl/get_db_times.py +++ b/opl/get_db_times.py @@ -178,7 +178,7 @@ def _app_get_hosts(self, batch_hosts): def work(self): """ 1. Get host IDs from storage DB - 2. Get timetamp from app DB + 2. Get timestamp from app DB 3. Store timestamps in storage DB 4. Go to 1. until we have all hosts with their timestamps """