remove id from files in jobset folders

Former-commit-id: 7d6be4a0114b3f4b5c43e278c4808949d8b0a4dc
This commit is contained in:
Daniel Løvbrøtte Olsen 2020-05-02 12:18:12 +02:00 committed by Daniel Olsen
parent 2aa8ea7435
commit 2b4c5820c0

View File

@ -110,7 +110,7 @@ fn upload(id: Uuid, video: Data, shared: State<SharedState>) -> Result<String, s
else { else {
let list = shared.jobs.lock().unwrap(); let list = shared.jobs.lock().unwrap();
let job = list.get(&id).unwrap(); let job = list.get(&id).unwrap();
let filename = format!("results/{jobset}/{name}.{id}.webm", jobset = job.jobset, name = job.description.file_name, id = id); let filename = format!("results/{jobset}/{name}.webm", jobset = job.jobset, name = job.description.file_name);
let url = format!("{host}/{id}\n", host = "https://av1.dodsorf.as", id = id); let url = format!("{host}/{id}\n", host = "https://av1.dodsorf.as", id = id);
video.stream_to_file(Path::new(&filename))?; video.stream_to_file(Path::new(&filename))?;
Ok(url) Ok(url)