mirror of https://github.com/zulip/zulip.git
Clean up imports in analytics/views.py.
This commit is contained in:
parent
05bbdb379d
commit
31efe858ef
|
@ -1,31 +1,28 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import, division
|
||||||
from __future__ import division
|
|
||||||
from typing import Any, Dict, List, Tuple, Optional, Sequence, Callable, Union, Text
|
|
||||||
|
|
||||||
|
from django.core import urlresolvers
|
||||||
from django.db import connection
|
from django.db import connection
|
||||||
from django.db.models.query import QuerySet
|
from django.db.models.query import QuerySet
|
||||||
from django.template import RequestContext, loader
|
|
||||||
from django.core import urlresolvers
|
|
||||||
from django.http import HttpResponseNotFound, HttpRequest, HttpResponse
|
from django.http import HttpResponseNotFound, HttpRequest, HttpResponse
|
||||||
|
from django.template import RequestContext, loader
|
||||||
from jinja2 import Markup as mark_safe
|
from jinja2 import Markup as mark_safe
|
||||||
|
|
||||||
from zerver.decorator import has_request_variables, REQ, zulip_internal
|
from zerver.decorator import has_request_variables, REQ, zulip_internal
|
||||||
from zerver.models import UserActivity, UserActivityInterval, Realm
|
|
||||||
from zerver.lib.timestamp import timestamp_to_datetime
|
from zerver.lib.timestamp import timestamp_to_datetime
|
||||||
|
from zerver.models import UserActivity, UserActivityInterval, Realm
|
||||||
|
from zproject.jinja2 import render_to_response
|
||||||
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
import itertools
|
import itertools
|
||||||
import time
|
|
||||||
import re
|
|
||||||
import pytz
|
import pytz
|
||||||
from six.moves import filter
|
import re
|
||||||
from six.moves import map
|
import time
|
||||||
from six.moves import range
|
|
||||||
from six.moves import zip
|
|
||||||
eastern_tz = pytz.timezone('US/Eastern')
|
|
||||||
|
|
||||||
from zproject.jinja2 import render_to_response
|
from six.moves import filter, map, range, zip
|
||||||
|
from typing import Any, Dict, List, Tuple, Optional, Sequence, Callable, Union, Text
|
||||||
|
|
||||||
|
eastern_tz = pytz.timezone('US/Eastern')
|
||||||
|
|
||||||
def make_table(title, cols, rows, has_row_class=False):
|
def make_table(title, cols, rows, has_row_class=False):
|
||||||
# type: (str, List[str], List[Any], bool) -> str
|
# type: (str, List[str], List[Any], bool) -> str
|
||||||
|
|
Loading…
Reference in New Issue