Skip to content

Commit

Permalink
Restructuring to avoid cicrular dependency in 3rd party deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
audaciouscode committed May 7, 2017
1 parent 4d2ef44 commit 9ad62db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion performance.py
Expand Up @@ -8,11 +8,12 @@

import arrow

from django.conf import settings
from django.utils import timezone


def append_performance_sample(user, item, detail_date=timezone.now(), value=''):
from django.conf import settings

os.umask(000)

today = datetime.date.today()
Expand Down Expand Up @@ -42,6 +43,8 @@ def append_performance_sample(user, item, detail_date=timezone.now(), value=''):


def fetch_performance_samples(user, item, start=None, end=None):
from django.conf import settings

if end is None:
end = timezone.now()

Expand Down Expand Up @@ -79,6 +82,8 @@ def fetch_performance_samples(user, item, start=None, end=None):


def fetch_performance_users():
from django.conf import settings

items_path = settings.MEDIA_ROOT + '/purple_robot_analytics/'

users = {}
Expand Down

0 comments on commit 9ad62db

Please sign in to comment.