cronjob

package
v0.0.0-...-0985497 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StudentSubmission

type StudentSubmission struct {
	ID               int64  `db:"id"`
	StudentFirstName string `db:"first_name"`
	StudentLastName  string `db:"last_name"`
}

StudentSubmission is a view from the database used to identify which submissions should be included in the final zip file

func FetchStudentSubmissions

func FetchStudentSubmissions(db *sqlx.DB, groupID int64, taskID int64) ([]StudentSubmission, error)

FetchStudentSubmissions queries the database to gather all submissions for a given group and task

type SubmissionFileZipper

type SubmissionFileZipper struct {
	Stores    *app.Stores
	DB        *sqlx.DB
	Directory string
}

SubmissionFileZipper links all ressource to zip submissions

func (*SubmissionFileZipper) Run

func (job *SubmissionFileZipper) Run()

Run executes a job to zip all submissions for each group and task

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL