Skip to content

Commit

Permalink
fix ctf loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Dec 10, 2024
1 parent fdf6ef8 commit 6e2a2fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cmscontrib/loaders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
from .italy_yaml import YamlLoader
from .polygon import PolygonTaskLoader, PolygonUserLoader, PolygonContestLoader
from .tps import TpsTaskLoader
from .ctf import CtfTaskLoader


LOADERS = dict(
(loader_class.short_name, loader_class) for loader_class in [
YamlLoader,
PolygonTaskLoader, PolygonUserLoader, PolygonContestLoader,
TpsTaskLoader
TpsTaskLoader,
CtfTaskLoader
]
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Programming contest management system
Expand Down Expand Up @@ -319,4 +319,4 @@ def get_task(self, get_statement=True):

logger.info("Task parameters loaded.")

return task
return task

0 comments on commit 6e2a2fa

Please sign in to comment.