From 0609262d8ea14cee11cf2b866cb8bfba0e727229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20=28perso=29?= <4016501+unixfox@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:14:06 +0100 Subject: [PATCH] reduce refresh time to 5min in webserver mode --- potoken_generator/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/potoken_generator/main.py b/potoken_generator/main.py index c25e8ba..17d4717 100644 --- a/potoken_generator/main.py +++ b/potoken_generator/main.py @@ -74,7 +74,7 @@ Retrieve potoken using Chromium runned by nodriver, serve it on a json endpoint parser = argparse.ArgumentParser(description=description, formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument('-o', '--oneshot', action='store_true', default=False, help='Do not start server. Generate token once, print it and exit') - parser.add_argument('--update-interval', '-u', type=int, default=3600, + parser.add_argument('--update-interval', '-u', type=int, default=300, help='How ofthen new token is generated, in seconds (default: %(default)s)') parser.add_argument('--port', '-p', type=int, default=8080, help='Port webserver is listening on (default: %(default)s)')