Skip to content

Commit

Permalink
analytics/views.py: Remove unused imports.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk authored and timabbott committed Feb 3, 2019
1 parent 3127fb4 commit c2cb804
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions analytics/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

import itertools
import json
import logging
import re
import time
Expand All @@ -13,17 +12,15 @@
from django.conf import settings
from django.urls import reverse
from django.db import connection
from django.db.models import Sum
from django.db.models.query import QuerySet
from django.http import HttpRequest, HttpResponse, HttpResponseNotFound
from django.shortcuts import render
from django.template import RequestContext, loader
from django.template import loader
from django.utils.timezone import now as timezone_now, utc as timezone_utc
from django.utils.translation import ugettext as _
from jinja2 import Markup as mark_safe
import stripe

from analytics.lib.counts import COUNT_STATS, CountStat, process_count_stat
from analytics.lib.counts import COUNT_STATS, CountStat
from analytics.lib.time_utils import time_range
from analytics.models import BaseCount, InstallationCount, \
RealmCount, StreamCount, UserCount, last_successful_fill, installation_epoch
Expand All @@ -33,11 +30,9 @@
from zerver.lib.json_encoder_for_html import JSONEncoderForHTML
from zerver.lib.request import REQ, has_request_variables
from zerver.lib.response import json_success
from zerver.lib.timestamp import ceiling_to_day, \
ceiling_to_hour, convert_to_UTC, timestamp_to_datetime
from zerver.lib.timestamp import convert_to_UTC, timestamp_to_datetime
from zerver.models import Client, get_realm, Realm, \
UserActivity, UserActivityInterval, UserProfile
from zproject.settings import get_secret

if settings.ZILENCER_ENABLED:
from zilencer.models import RemoteInstallationCount, RemoteRealmCount, \
Expand Down

0 comments on commit c2cb804

Please sign in to comment.