Skip to content

Commit

Permalink
Final changes 2 (#183)
Browse files Browse the repository at this point in the history
* Import, Export fixes

IMPORTAR STACKEHOKDERS; COORDINADORES; SUPERVISORES

IGNORAR REPETIDOS AL MOMENTO DE IMPORTAR DE EXCEL

EXPORTACIONES DE TUTORES; STUDENTS;

* 1 line fix
  • Loading branch information
PatoForbes authored Dec 2, 2019
1 parent 8a630ee commit bc9ed87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/tutor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ def self.import(file)

xlsx = Roo::Spreadsheet.open(file.path)
xlsx.drop(1).each do |row|

username = row[0]

if !all_tutors.include?(username)
str = (0...6).map { o[rand(o.length)] }.join
Tutor.create(
Expand Down

0 comments on commit bc9ed87

Please sign in to comment.