Expect full downloadable file pathname (allow CDN)

This commit is contained in:
nemunaire 2016-02-26 01:31:00 +01:00 committed by Pierre-Olivier Mercier
parent da84a90b4f
commit ee67788d59
3 changed files with 3 additions and 5 deletions

View file

@ -17,7 +17,6 @@ import (
var TeamsDir string
var SubmissionDir string
var BaseURL string
func watchsubdir(watcher *inotify.Watcher, pathname string) error {
log.Println("Watch new directory:", pathname)
@ -44,7 +43,6 @@ func watchsubdir(watcher *inotify.Watcher, pathname string) error {
func main() {
var dsn = flag.String("dsn", "fic:fic@/fic", "DSN to connect to the MySQL server")
flag.StringVar(&BaseURL, "baseurl", "http://fic.srs.epita.fr/", "URL prepended to each URL")
flag.StringVar(&SubmissionDir, "submission", "./submissions", "Base directory where save submissions")
flag.StringVar(&TeamsDir, "teams", "../TEAMS", "Base directory where save teams JSON files")
flag.Parse()