Skip to content

Commit

Permalink
Added an optional ID paramter to SubmissionRequest to help with debug…
Browse files Browse the repository at this point in the history
…ging and logging. Resolves #100
  • Loading branch information
MartinXPN authored May 16, 2024
1 parent e6a5a57 commit ecb0bba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def __post_init__(self):

@dataclass
class SubmissionRequest(DataClassJsonCamelMixIn):
# Code is a mapping from filename.extension -> content (Http requests have 2MB limit)
code: dict[str, str]
code: dict[str, str] # Mapping from filename.extension -> content (Http requests have 2MB limit)
language: str
id: str | None = None # Used to identify the submission (completely optional)

memory_limit: int = 512 # MB
time_limit: float = 5 # seconds
output_limit: float = 1 # MB
Expand Down

0 comments on commit ecb0bba

Please sign in to comment.