|
|
|
@ -61,7 +61,8 @@ module ZipService
|
|
|
|
|
digests << Trustie::Utils.digest(file_name)
|
|
|
|
|
end
|
|
|
|
|
out_file_name = "#{Time.now.strftime("%Y%m%d%H%M%S").to_s}-#{exercise.course_id}-#{exercise.exercise_name}.zip"
|
|
|
|
|
out_file_name.gsub!(" ", "-").gsub!("/", "_")
|
|
|
|
|
out_file_name.gsub!(" ", "-")
|
|
|
|
|
out_file_name.gsub!("/", "_")
|
|
|
|
|
out_file = find_or_pack(exercise.id, exercise.user_id, digests.sort){
|
|
|
|
|
zipping(out_file_name,
|
|
|
|
|
bid_homework_path, OUTPUT_FOLDER)
|
|
|
|
@ -91,7 +92,8 @@ module ZipService
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
out_file_name = "#{Time.now.strftime("%Y%m%d%H%M%S").to_s}-#{homework_common.course_id}-#{homework_common.name}.zip"
|
|
|
|
|
out_file_name.gsub!(" ", "-").gsub!("/", "_")
|
|
|
|
|
out_file_name.gsub!(" ", "-")
|
|
|
|
|
out_file_name.gsub!("/", "_")
|
|
|
|
|
out_file = find_or_pack(homework_common.id, homework_common.user_id, digests.sort){
|
|
|
|
|
zipping(out_file_name,
|
|
|
|
|
bid_homework_path, OUTPUT_FOLDER)
|
|
|
|
|