Migrate section_id to session_history table

This commit is contained in:
JonnyWong16 2021-03-27 21:35:05 -07:00
commit 6086e84630
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
9 changed files with 81 additions and 43 deletions

View file

@ -413,7 +413,7 @@ class Users(object):
join = ''
if include_last_seen:
last_seen = 'MAX(session_history.started)'
join = 'LEFT OUTER JOIN session_history ON users.user_id == session_history.user_id'
join = 'LEFT OUTER JOIN session_history ON users.user_id = session_history.user_id'
monitor_db = database.MonitorDatabase()