mirror of
https://github.com/yweber/lodel2.git
synced 2025-11-26 07:16:54 +01:00
Deleted a useless file
This commit is contained in:
parent
693bfd7a45
commit
231b3d89af
1 changed files with 0 additions and 19 deletions
|
|
@ -1,19 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from lodel.plugin import LodelHook
|
||||
|
||||
|
||||
## @brief checks if a session is valid or not, given its id
|
||||
# @param session_id str
|
||||
# @return bool
|
||||
@LodelHook('lodel2.check_session')
|
||||
def check_session(session_id):
|
||||
return True
|
||||
|
||||
|
||||
## @brief gets the session data corresponding to a session id
|
||||
# @param session_id str
|
||||
# @return dict|None : returns a dict containing the session data if a session is active/valid, None if not
|
||||
def get_session(session_id):
|
||||
is_valid = LodelHook.call_hook('lodel2.check_session')
|
||||
session_data = dict()
|
||||
return session_data
|
||||
Loading…
Add table
Add a link
Reference in a new issue