fixing token script

master
a2nr 2026-01-04 17:52:00 +07:00
parent 9f24dc58a0
commit fe0e36796a
2 changed files with 3 additions and 5 deletions

View File

@ -9,8 +9,8 @@ import glob
import uuid import uuid
# Configuration # Configuration
CONTENT_DIR = 'content' CONTENT_DIR = '../content'
TOKENS_FILE = 'tokens.csv' TOKENS_FILE = '../tokens_siswa.csv'
def get_lesson_names(): def get_lesson_names():
"""Get all lesson names from the content directory (excluding home.md)""" """Get all lesson names from the content directory (excluding home.md)"""
@ -41,4 +41,4 @@ def generate_tokens_csv():
print("Teachers can now add student tokens and names directly to this file.") print("Teachers can now add student tokens and names directly to this file.")
if __name__ == '__main__': if __name__ == '__main__':
generate_tokens_csv() generate_tokens_csv()

View File

@ -1,2 +0,0 @@
token;nama_siswa;introduction_to_c;variables_and_data_types
TESTTOKEN123;Test User;completed;
1 token nama_siswa introduction_to_c variables_and_data_types
2 TESTTOKEN123 Test User completed