PlexPy - merge or consolidate users viewing history

If you're web sessions for some reason has expired and your
viewing something that session history will not be added to
your users session history.
Or if a user has been deleted by mistake and recreated or
moved from an old version to the new PlexPy version you
can merge the user session history with this procedure.

UPDATE session_history SET user = replace( user, '', '' ) WHERE user LIKE 'old_username';
UPDATE session_history SET user_id = replace( user_id, '', '' ) WHERE user_id LIKE 'old_user_id';
You can view this article online at: