rm anonymous state
Browse files
submit.py
CHANGED
|
@@ -14,7 +14,6 @@ from validation import validate_csv_file
|
|
| 14 |
def make_submission(
|
| 15 |
submitted_file: BinaryIO,
|
| 16 |
user_state,
|
| 17 |
-
anonymous_state,
|
| 18 |
submission_type: str = "GDPa1",
|
| 19 |
):
|
| 20 |
if user_state is None:
|
|
@@ -50,8 +49,8 @@ def make_submission(
|
|
| 50 |
"submission_time": timestamp,
|
| 51 |
"evaluated": False,
|
| 52 |
"user": user_state,
|
| 53 |
-
"anonymous": anonymous_state,
|
| 54 |
"csv_content": file_content,
|
|
|
|
| 55 |
}
|
| 56 |
with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as tmp:
|
| 57 |
json.dump(record, tmp, indent=2)
|
|
|
|
| 14 |
def make_submission(
|
| 15 |
submitted_file: BinaryIO,
|
| 16 |
user_state,
|
|
|
|
| 17 |
submission_type: str = "GDPa1",
|
| 18 |
):
|
| 19 |
if user_state is None:
|
|
|
|
| 49 |
"submission_time": timestamp,
|
| 50 |
"evaluated": False,
|
| 51 |
"user": user_state,
|
|
|
|
| 52 |
"csv_content": file_content,
|
| 53 |
+
"dataset": submission_type,
|
| 54 |
}
|
| 55 |
with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as tmp:
|
| 56 |
json.dump(record, tmp, indent=2)
|