Allow to create group and its contest on UI

This commit is contained in:
cuom1999 2022-09-15 02:05:02 -05:00
parent 196e2a9bb0
commit 67ef6b9111
28 changed files with 1029 additions and 556 deletions

View file

@ -19,12 +19,15 @@ def gen_submissions():
with connection.cursor() as cursor:
cursor.execute(query)
headers = [i[0] for i in cursor.description]
with open(os.path.join(settings.ML_DATA_PATH, "submissions.csv"), "w") as csvfile:
with open(
os.path.join(settings.ML_DATA_PATH, "submissions.csv"), "w"
) as csvfile:
f = csv.writer(csvfile)
f.writerow(headers)
for row in cursor.fetchall():
f.writerow(row)
def gen_users():
print("Generating users")
headers = ["uid", "username", "rating", "points"]