Add dashboard management - edit function
This commit is contained in:
@@ -12,6 +12,19 @@ def get_roles():
|
||||
|
||||
return df
|
||||
|
||||
def get_groups():
|
||||
|
||||
sql = """
|
||||
select
|
||||
group_id || ' | ' || group_text as "group"
|
||||
from
|
||||
groups
|
||||
"""
|
||||
df = get_list(sql)
|
||||
|
||||
return df
|
||||
|
||||
|
||||
def get_id(id_text: str):
|
||||
id = int(id_text.split("|")[0])
|
||||
if not id:
|
||||
|
||||
Reference in New Issue
Block a user