#NEWLINE# @ staticmethod #NEWLINE# def Update( session ) : #NEWLINE# #INDENT# conn = SessionManager . ConnectDB ( ) #NEWLINE# try : #NEWLINE# #INDENT# now = datetime . datetime . now ( ) #NEWLINE# conn . execute ( 'update sessions set last_seen = ?, last_ip = ? where id = ?' , ( session , session . _fromip , session . sessionid ) ) #NEWLINE# conn . commit ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# conn . close ( )