Skip to content

Commit 1ff010c

Browse files
committed
fix mypy expires warning
1 parent ff6c5f0 commit 1ff010c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openlibrary/fastapi/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ async def login(
208208
)
209209

210210
# Determine cookie expiration
211-
expires = 3600 * 24 * 365 if form_data.remember else ""
211+
expires = 3600 * 24 * 365 if form_data.remember else None
212212

213213
# Generate auth token (same way web.py does it via Account.generate_login_code())
214214
login_code = generate_login_code_for_user(ol_username)

0 commit comments

Comments
 (0)