Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
ws-eidaauth
Commits
5f25a8b8
Commit
5f25a8b8
authored
Nov 18, 2019
by
Jonathan Schaeffer
Browse files
rowcount is an INT
parent
3d1db573
Changes
1
Hide whitespace changes
Inline
Side-by-side
eidawsauth/eidawsauth.py
View file @
5f25a8b8
...
...
@@ -155,7 +155,7 @@ def cleanup():
raise
e
cur
.
execute
(
"select user_index,login from users where expires_at < now();"
)
expired_accounts
=
cur
.
rowcount
()
expired_accounts
=
cur
.
rowcount
old_users_entries
=
cur
.
fetchall
()[:
1000
]
old_users
=
','
.
join
(
str
(
u
[
0
])
for
u
in
old_users_entries
)
logging
.
debug
(
"%d users to delete"
%
(
len
(
old_users_entries
)))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment