parselearn

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: AGPL-3.0, AGPL-3.0 Imports: 6 Imported by: 0

README

parselearn

parse receipts for submissions in LEARN drop boxes

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFilename

func CheckFilename(receiptPath string) error

func GetFilePaths

func GetFilePaths(inputPath string) ([]string, error)

func HandleIgnoreReceipts

func HandleIgnoreReceipts(receiptMap *map[string]Submission)

func WriteLearnReceipt added in v0.2.2

func WriteLearnReceipt(path string, sub Submission) error

write a receipt from the submission

func WriteSubmissionsToCSV

func WriteSubmissionsToCSV(subs []Submission, outputPath string) error

Types

type Submission

type Submission struct {
	Revision           int     `csv:"Revision"`
	Action             string  `csv:"Action"`
	FirstName          string  `csv:"FirstName"`
	LastName           string  `csv:"LastName"`
	Matriculation      string  `csv:"Matriculation"`
	Assignment         string  `csv:"Assignment"`
	DateSubmitted      string  `csv:"DateSubmitted"`
	CurrentMark        string  `csv:"CurrentMark"`
	SubmissionField    string  `csv:"SubmissionField"`
	Comments           string  `csv:"Comments"`
	OriginalFilename   string  `csv:"OriginalFilename"`
	Filename           string  `csv:"Filename"`
	ExamNumber         string  `csv:"ExamNumber"`
	MatriculationError string  `csv:"MatriculationError"`
	ExamNumberError    string  `csv:"ExamNumberError"`
	FiletypeError      string  `csv:"FiletypeError"`
	FilenameError      string  `csv:"FilenameError"`
	NumberOfPages      string  `csv:"NumberOfPages"`
	FilesizeMB         float64 `csv:"FilesizeMB"`
	NumberOfFiles      int     `csv:"NumberOfFiles"`
	OwnPath            string  `csv:"OwnPath"`
}

func ParseLearnReceipt

func ParseLearnReceipt(inputPath string) (Submission, error)

Jump to

Keyboard shortcuts

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