예제 #1
0
파일: web.py 프로젝트: puchupala/overlord
def get_dt_end(request, dt_start):
    if 'dt_end' not in request.GET:
        dt_end = dt_start + config.DT_QUERY
    else:
        dt_end = query.dt_from_timestamp(float(request.GET['dt_end']))
    return dt_end
예제 #2
0
파일: web.py 프로젝트: KnightBaron/overlord
def get_dt_end(request, dt_start):
  if 'dt_end' not in request.GET:
    dt_end = dt_start + config.DT_QUERY
  else:
    dt_end = query.dt_from_timestamp(float(request.GET['dt_end']))
  return dt_end
예제 #3
0
파일: web.py 프로젝트: puchupala/overlord
def get_dt_start(request):
    if 'dt_start' not in request.GET:
        dt_start = datetime.datetime.now() - config.DT_QUERY
    else:
        dt_start = query.dt_from_timestamp(float(request.GET['dt_start']))
    return dt_start
예제 #4
0
파일: web.py 프로젝트: KnightBaron/overlord
def get_dt_start(request):
  if 'dt_start' not in request.GET:
    dt_start = datetime.datetime.now() - config.DT_QUERY
  else:
    dt_start = query.dt_from_timestamp(float(request.GET['dt_start']))
  return dt_start