Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#FIXME its total messs! #3

Closed
debtBot opened this issue Oct 23, 2016 · 1 comment
Closed

#FIXME its total messs! #3

debtBot opened this issue Oct 23, 2016 · 1 comment
Assignees

Comments

@debtBot
Copy link
Collaborator

debtBot commented Oct 23, 2016

#FIXME its total messs!

Context

      #FIXME its total messs!
      cells.length.times do |i|
        if cells[i].text==" Hall Ticket No "
          next
        elsif cells[i-1].text==" Hall Ticket No "
          next
        elsif cells[i-1].text==" Course "
          next
        elsif cells[i].text==" Name "
          @results[reg_no][:name]=cells[i+1].text
          next
        elsif cells[i].text==" Course " || cells[i].text=~ /B.E.(.*)/ || cells[i].text=="Marks Details" || cells[i].text=="Subject" || cells[i].text=="Grade" || cells[i].text=="Status"
          next
        elsif cells[i].text=="PASS" || cells[i].text=="RA" || cells[i].text=="A"|| cells[i].text=="B"|| cells[i].text=="C"|| cells[i].text=="D"|| cells[i].text=="E"|| cells[i].text=="S"|| cells[i].text=="U"|| cells[i].text=~ /WH(.*)/ || cells[i].text=="AB"|| cells[i].text=="W"|| cells[i].text=="SA" || cells[i].text=="SE"|| cells[i].text=="A.B"|| cells[i].text=="I"|| cells[i].text=="WD"|| cells[i].text==" "|| cells[i].text=="BRK"
          next
        elsif cells[i+1].text==" Course "
          next
        else
          @results[reg_no][:grades][cells[i].text]={:grade=>cells[i+1].text,:result=>cells[i+2].text}
        end
      end
      if @results[reg_no][:name].nil?
        @results.delete(reg_no)
      end
      @count+=1
      puts @results[reg_no]
    end
  end

end

Auto-opened by DebTrakr

@debtBot
Copy link
Collaborator Author

debtBot commented Oct 23, 2016

This issue was possibly resolved by 696ef6d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants