diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-03 10:17:28 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-03 10:17:28 +0100 |
commit | 0835d1b7811c38f8e4f48ae3772d26fccd70c217 (patch) | |
tree | 4e054105ceb6735a6d99f737fa9a4e0ef44ac2dc /vk/tracking/sessions.py | |
parent | workflows/ci: unpin runner image (diff) | |
download | vk-scripts-1.0.3.tar.gz vk-scripts-1.0.3.zip |
add runtime version informationv1.0.3
Diffstat (limited to '')
-rw-r--r-- | vk/tracking/sessions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vk/tracking/sessions.py b/vk/tracking/sessions.py index 278a004..4b6fd66 100644 --- a/vk/tracking/sessions.py +++ b/vk/tracking/sessions.py @@ -15,6 +15,7 @@ from vk.tracking.db import Format as DatabaseFormat from vk.user import UserField from vk.utils.bar_chart import BarChartBuilder from vk.utils import io +import vk.version class Weekday(Enum): @@ -436,6 +437,8 @@ def _parse_args(args=None): parser = argparse.ArgumentParser( description='View/visualize the amount of time people spend online.') + vk.version.add_to_arg_parser(parser) + parser.add_argument('db_path', metavar='input', nargs='?', help='database file path (standard input by default)') parser.add_argument('out_path', metavar='output', nargs='?', |