修改作业打包下载报错的BUG
This commit is contained in:
parent
a54edd9047
commit
2a8df37cfc
|
@ -110,7 +110,7 @@ class ZipdownController < ApplicationController
|
||||||
#length = attach.storage_path.length
|
#length = attach.storage_path.length
|
||||||
homeworks_attach_path << attach.diskfile#.to_s.slice((length+1)..-1)
|
homeworks_attach_path << attach.diskfile#.to_s.slice((length+1)..-1)
|
||||||
end
|
end
|
||||||
zipping("#{user.user_extensions.student_id}_#{homeattach.user.name.to_s}.zip", homeworks_attach_path, OUTPUT_FOLDER, true)
|
zipping("#{homework.user.user_extensions.student_id}_#{homeattach.user.name.to_s}.zip", homeworks_attach_path, OUTPUT_FOLDER, true)
|
||||||
#user_attaches_paths
|
#user_attaches_paths
|
||||||
#end
|
#end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue