old_contents: #!/usr/bin/env python
  
  import requests
  from datetime import datetime
  from jobs import AbstractJob
  
  
  class Stats(AbstractJob):
  
      def __init__(self, conf):
          self.interval = conf['interval']
          self.nick = conf['nick']
          self.max = conf['max']
          self.timeout = conf.get('timeout')
  
      def get(self):
          today = datetime.now().date().strftime('%s000')
          params = {
              'q': 'statsByTimestamp(\'{nick}\', {today})'.format(nick=self.nick,
                                                                  today=today)
          }
          r = requests.get('http://skynet.tihlde.org:3000',
                           timeout=self.timeout, params=params)
          if r.status_code == 200 and len(r.content) > 0:
              return {
                  'stats': r.json(),
                  'max': self.max,
                  'nick': self.nick
              }
          return {}
  
new_contents: #!/usr/bin/env python
  
  import requests
  from datetime import datetime
  from jobs import AbstractJob
  
  
  class Stats(AbstractJob):
  
      def __init__(self, conf):
          self.interval = conf['interval']
          self.nick = conf['nick']
          self.max = conf['max']
          self.timeout = conf.get('timeout')
  
      def get(self):
          today = datetime.now().date().strftime('%s000')
          params = {
              'q': 'statsByTimestamp(\'{nick}\', {today})'.format(nick=self.nick,
                                                                  today=today)
          }
          r = requests.get('http://hilde.nerdvana.tihlde.org:3000',
                           timeout=self.timeout, params=params)
          if r.status_code == 200 and len(r.content) > 0:
              return {
                  'stats': r.json(),
                  'max': self.max,
                  'nick': self.nick
              }
          return {}
  
subject: Update URL