+sevenDaysAgo = Date.today().add(-3).days().valueOf() / 1000
+
 queries = {
   activities: squel.select()
     .from('strava_activities')

  self.date_uts = data.date_uts
  self.url = data.url
  self.summary = ko.computed( () ->
    if (self.album_text)
      sprintf('%s - %s (from %s)', self.artist_text, self.name, self.album_text)
    else
      sprintf('%s - %s', self.artist_text, self.name)
  )
  return


      'addictiveTracks': queryStrings.addictiveTracks
    }
    (data) ->
      self.activities(_.map data.activities.results,
                      (result) -> new Activity(result))
      self.recentTracks(_.map data.recentTracks.results,
                        (result) -> new Track(result))
      self.addictiveTracks(_.map data.addictiveTracks.results,
                           (result) -> new Track(result))
      _.each(_.pairs(data), (pair) ->
        name = pair[0]
        queryTime = pair[1].query_time_sec
        console.log sprintf '%s: %.3f sec', name, queryTime
        return
      )
      return
  ).fail (jqXHR) ->
    console.log jqXHR.status, jqXHR.statusText, jqXHR.responseText
