Added shuffle option of frontpage

This commit is contained in:
2024-12-28 13:51:02 +01:00
parent 96d9aa6b5f
commit 00d91580aa
2 changed files with 11 additions and 8 deletions

3
app.py
View File

@@ -663,7 +663,8 @@ def index():
results = cursor.fetchall()
set_list = [list(i) for i in results]
if os.getenv("RANDOM") == True:
random.shuffle(set_list)
cursor.execute('SELECT DISTINCT u_id from missing;')
results = cursor.fetchall()
missing_list = [list(i)[0] for i in results]