From: Christian Heller Date: Mon, 9 Feb 2026 07:47:00 +0000 (+0100) Subject: Default queries_cutoff to now_string. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/%22https:/validator.w3.org/ledger?a=commitdiff_plain;p=ytplom Default queries_cutoff to now_string. --- diff --git a/src/ytplom/misc.py b/src/ytplom/misc.py index 8e35920..bdd79a9 100644 --- a/src/ytplom/misc.py +++ b/src/ytplom/misc.py @@ -23,23 +23,6 @@ from ytplom.db import DbConn, DbData, Hash from ytplom.primitives import HandledException, NotFoundException -# default configuration -DEFAULTS = { - 'api_key': '', - 'allow_file_edit': True, - 'background_color': '#ffffff', - 'host': '127.0.0.1', # NB: to be found remotely, use '0.0.0.0'! - 'link_originals': True, - 'port': 8090, - 'port_remote': 8090, - 'remote': '192.168.1.100', - 'queries_cutoff': '', - 'tags_default': ['new'], - 'tags_display_whitelist': [], - 'tags_prefilter_whitelist': [], - 'tags_prefilter_needed': [], -} - # type definitions for mypy DatetimeStr = NewType('DatetimeStr', str) QuotaCost = NewType('QuotaCost', int) @@ -114,6 +97,24 @@ def _now_string() -> DatetimeStr: return DatetimeStr(datetime.now().strftime(TIMESTAMP_FMT)) +# default configuration +DEFAULTS = { + 'api_key': '', + 'allow_file_edit': True, + 'background_color': '#ffffff', + 'host': '127.0.0.1', # NB: to be found remotely, use '0.0.0.0'! + 'link_originals': True, + 'port': 8090, + 'port_remote': 8090, + 'remote': '192.168.1.100', + 'queries_cutoff': _now_string(), + 'tags_default': ['new'], + 'tags_display_whitelist': [], + 'tags_prefilter_whitelist': [], + 'tags_prefilter_needed': [], +} + + class TagSet: """Collection of tags as used in VideoFile.tags."""