mirror of
https://github.com/koloideal/Quizzi.git
synced 2026-06-10 18:35:28 +03:00
Initial commit
This commit is contained in:
@@ -18,7 +18,7 @@ async def get_tests_data(test_dao: FromDishka[TestDAO], **_kwargs):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
"tests": [
|
"tests": [
|
||||||
(t.title, t.id)
|
(f"{'🟢' if t.is_active else '🔴'} {t.title}", t.id)
|
||||||
for t in tests
|
for t in tests
|
||||||
],
|
],
|
||||||
"count": len(tests),
|
"count": len(tests),
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ async def get_tests_data(test_dao: FromDishka[TestDAO], **_kwargs):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
"tests": [
|
"tests": [
|
||||||
(t.title, t.id)
|
(f"{'🟢' if t.is_active else '🔴'} {t.title}", t.id)
|
||||||
for t in tests
|
for t in tests
|
||||||
],
|
],
|
||||||
"count": len(tests),
|
"count": len(tests),
|
||||||
|
|||||||
Reference in New Issue
Block a user