home · contact · privacy
Default queries_cutoff to now_string. master
authorChristian Heller <c.heller@plomlompom.de>
Mon, 9 Feb 2026 07:47:00 +0000 (08:47 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 9 Feb 2026 07:47:00 +0000 (08:47 +0100)
src/ytplom/misc.py

index 8e3592020aef72a3f12fb9f50a8310332c241e3d..bdd79a93bcecbf529b78bf9fb64f4773be8b7d86 100644 (file)
@@ -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."""