Add basic quiz functionality

This commit is contained in:
2024-11-23 22:25:24 +01:00
parent 6bf0a56b88
commit 27b8c40c1c
40 changed files with 2471 additions and 53 deletions

8
tvdt/quiz/helpers.py Normal file
View File

@@ -0,0 +1,8 @@
import random
import string
def generate_season_code(length: int = 5) -> str:
return "".join(
random.choice(string.ascii_uppercase + string.digits) for _ in range(length)
)