code: def parse_view_spec(args):
      
  
      view_spec = {}
  
      if 'date' in args:
          view_spec['date'] = args['date']
      elif 'id' in args:
          view_spec['start'] = args['id']
  
      if 'tag' in args:
          view_spec['tag'] = args.getlist('tag')
          if len(view_spec['tag']) == 1:
              view_spec['tag'] = args['tag']
  
      return view_spec
docs: Parse a view specification from a request arg list