Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
dario2994 committed Jun 10, 2022
1 parent 74073fe commit c55ff5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion examples/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ domjudge: # Credentials for the DOMjudge instance APIs. Must be an admin user.
password: admin
# The external ID of the contest in DOMjudge.
# The contest is NOT created by pol2dom and must be manually created by the user.
contest_id: testing_contest_id
contest_id: testing_contest

problems:
- name: gianni
Expand Down
24 changes: 3 additions & 21 deletions p2d/p2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,25 +219,7 @@ def prepare_argument_parser():

return parser

# The structure of contest_dir generated by p2d is:
#
# config.yaml
# polygon/
# problemname/
# the content of the package.
# problemname.zip = the zipped package itself.
# domjudge/
# problemname/
# the content of the package
# problemname.zip = the zipped package itself
# tex/
# samples/ (containing all the samples)
# images/ (containing all the images, for statements and solutions)
# problemset.pdf
# solutions.pdf
# For each problem:
# problemname-statement.pdf
# problemname-solution.pdf

def p2d(args):
# Configuring logging
logging.basicConfig(
Expand Down Expand Up @@ -427,11 +409,11 @@ def main():


# TODO: Everything should be tested appropriately.
# TODO: Polish the documentation (reread README.md).
# TODO: The colors belong to what list?
# Must work with latex and must also work with Utils::convertToHex
# github.com/DOMjudge/domjudge/blob/main/webapp/src/Utils/Utils.php#L268
# The easiest and most consistent solution, but not user-friendly, is to
# require the colors to be hexadecimal (and add support for them in latex).
# TODO: --problem should be important also for --clear-dir and --clear-domjudge-ids.
# TODO: --problem should be considered also for --clear-dir and --clear-domjudge-ids.
# TODO: Check that config.yaml does not contain unrelated keys.
# TODO: Add the support for interactive problems.

0 comments on commit c55ff5a

Please sign in to comment.