File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ def claim_atomic(
6565 params .append (tag_name )
6666
6767 if exclude_recent_minutes and exclude_recent_minutes > 0 :
68- cutoff = (
69- _utcnow () - timedelta (minutes = exclude_recent_minutes )
70- ).isoformat () + "Z"
68+ cutoff = (_utcnow () - timedelta (minutes = exclude_recent_minutes )).isoformat () + "Z"
7169 sql += " AND (a.last_claimed_at IS NULL OR a.last_claimed_at < ?)"
7270 params .append (cutoff )
7371
@@ -99,9 +97,7 @@ def claim_atomic(
9997 return None
10098
10199 now_str = _utcnow ().isoformat () + "Z"
102- lease_expires_at_str = (
103- _utcnow () + timedelta (seconds = lease_seconds )
104- ).isoformat () + "Z"
100+ lease_expires_at_str = (_utcnow () + timedelta (seconds = lease_seconds )).isoformat () + "Z"
105101 token = "clm_" + secrets .token_urlsafe (9 )
106102
107103 conn .execute (
You can’t perform that action at this time.
0 commit comments