[impression/digocode] Fonction retrounant la liste des codes d'un login crans
This commit is contained in:
parent
8d871775a1
commit
6c13e9a149
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ def list_code():
|
|||
code_list.append((aCode, age, content ) )
|
||||
return code_list
|
||||
|
||||
def get_codes(login):
|
||||
return [code for (code, age, uid) in list_code() if uid == login]
|
||||
|
||||
def read_code_file(code):
|
||||
"""
|
||||
Lis le fichier correspondant au code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue