Yep, see the next pull.


On Thu, May 23, 2013 at 10:19 AM, Brandon Keepers
<notifications@github.com>wrote:

> In app.rb:
>
> > @@ -15,16 +17,21 @@ class DataLoss < Sinatra::Base
> >
> >    get '/:username' do
> >      @username = params['username']
> > -    @days = if date = settings.redis.get(key(@
> username))
> > -      @date = Date.parse(date)
> > -      (Date.today - @date).to_i
> > +    items = settings.redis.lrange key(@username), 0, -1
> > +    @incidents = items.map do |i|
> > +      date, sup = i.split '(╯°□°）╯︵ ┻━┻'
> > +      date = Date.parse(date)
> > +      ago = (Date.today - date).to_i
> > +      [ ago, sup ]
>
> Time for a struct? Maybe a Incident class, with @incidents =
> Incident.for(@useranme).
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/bkeepers/dataloss/pull/2/files#r4362861>
> .
>