Skip to content

Commit

Permalink
removing stathat
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhasp committed Dec 3, 2013
1 parent 4682edf commit 805f78c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 75 deletions.
8 changes: 0 additions & 8 deletions main/models/user_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ def twitter_clean(self):
class Meta:
app_label = 'main'

from utils.stathat_api import stathat_count


def stathat_user_signups(sender, instance, created, **kwargs):
if created:
stathat_count('formhub-signups')
post_save.connect(stathat_user_signups, sender=UserProfile)


def create_auth_token(sender, instance=None, created=False, **kwargs):
if created:
Expand Down
6 changes: 0 additions & 6 deletions odk_logger/models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from odk_logger.xform_instance_parser import XFormInstanceParser, \
clean_and_parse_xml, get_uuid_from_xml
from utils.model_tools import set_uuid
from utils.stathat_api import stathat_count
from django.utils.translation import ugettext as _
from taggit.managers import TaggableManager

Expand Down Expand Up @@ -185,11 +184,6 @@ def update_xform_submission_count_delete(sender, instance, **kwargs):
dispatch_uid='update_xform_submission_count_delete')


def stathat_form_submission(sender, instance, created, **kwargs):
if created:
stathat_count('formhub-submissions')


class InstanceHistory(models.Model):
class Meta:
app_label = 'odk_logger'
Expand Down
2 changes: 0 additions & 2 deletions odk_logger/models/xform.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from taggit.managers import TaggableManager

from odk_logger.xform_instance_parser import XLSFormError
from utils.stathat_api import stathat_count
from stats.tasks import stat_log

from hashlib import md5
Expand Down Expand Up @@ -216,7 +215,6 @@ def public_forms(cls):

def stats_forms_created(sender, instance, created, **kwargs):
if created:
stathat_count('formhub-forms-created')
stat_log.delay('formhub-forms-created', 1)

post_save.connect(stats_forms_created, sender=XForm)
Expand Down
19 changes: 0 additions & 19 deletions staff/templates/stats.html

This file was deleted.

22 changes: 0 additions & 22 deletions utils/stathat.py

This file was deleted.

18 changes: 0 additions & 18 deletions utils/stathat_api.py

This file was deleted.

0 comments on commit 805f78c

Please sign in to comment.