Skip to content

Commit 7ebb07b

Browse files
committed
style: fix pool.py black formatting (cutoff + lease_expires_at_str)
1 parent 5a3e6dd commit 7ebb07b

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

outlook_web/repositories/pool.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)