Skip to content

Commit f4f882d

Browse files
committed
Correct safe run-ID recognition in throttled publisher skip metadata
1 parent 162e3c0 commit f4f882d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/bin/bob-moltbook-publisher‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def record_publisher_skip(db,code,rid=''):
8282
"WHERE kind='publisher_skip' ORDER BY id DESC LIMIT 1").fetchone()
8383
stamp=datetime.now(timezone.utc)
8484
details='code='+code
85-
if isinstance(rid,str) and re.fullmatch(r'\\d{8}T\\d{6}Z',rid):
85+
if isinstance(rid,str) and re.fullmatch(r'\d{8}T\d{6}Z',rid):
8686
details+=' run='+rid
8787
if recent and recent[1]==details:
8888
when=parse_time(recent[0])

0 commit comments

Comments
 (0)