Fix a bug where unit tests are attempting to log in and use their session key in the same second that the session key was created.
7 lines
172 B
SQL
7 lines
172 B
SQL
SELECT authors.name, authors.id
|
|
FROM authors, sessions
|
|
WHERE
|
|
sessions.key = :key AND
|
|
sessions.author = authors.id AND
|
|
sessions.start - strftime('%s','now') <= 60*60*24;
|