def project_totals(from=7.days.ago, to=Date.today)
      @pt = []
      projects.each do |p|
        hrs = total_project_hours(p.id, from, to)
        @pt << [p.name, hrs] if hrs > 0
      end
      @pt
    end
def project_totals(from=7.days.ago, to=Date.today)
      @pt = []
      projects.each do |p|
        hrs = total_project_hours(p.id, from, to)
        @pt << [p.name, hrs] if hrs > 0
      end
      @pt
    end
[['proj1', 25.5], ['proj2', 33.3]]