Allow to create group and its contest on UI
This commit is contained in:
parent
196e2a9bb0
commit
67ef6b9111
28 changed files with 1029 additions and 556 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue