Builds submissions archive, in szubrawcy format, in out_file from data
- class oioioi.exportszu.utils.SubmissionData¶
- class oioioi.exportszu.utils.SubmissionsWithUserDataCollector(contest, round=None, problem_instance=None, language=None, only_final=True)¶
Collects submissions with some associated data in specific contest with some filtering.
We want the user of collector objects to know nothing (or very little) about the database, controller logic etc. It is responsibility of the collector to provide access to fully prepared data.
- get_submission_source(out_file_path, source)¶
- oioioi.exportszu.utils.build_submissions_archive(out_file, submission_collector)¶
Builds submissions archive, in szubrawcy format, in out_file from data provided by submission_collector. Argument out_file should be a file-like object.