Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
update achievements
  • Loading branch information
dtraviglia committed Sep 29, 2015
1 parent 1c72fb1 commit 9d26f5451e830878deef5b98eaaba3b6cd4a44fb
Showing 3 changed files with 34 additions and 7 deletions.
@@ -13,7 +13,33 @@ def checkAchievements(request):


def tasksComplete(request):
if request.method == 'POST':
user = request.user
userprofile = user.userprofile
# if request.method == 'POST':
# user = request.user
# userprofile = user.userprofile
return True


def genTaskAccuracy(request):
return 10


def devTaskAccuracy(request):
return 10


def referralsOne(request):
return True


def referralsTwo(request):
return True


def referralsThree(request):
return True


def referralsFour(request):
return True


@@ -5,6 +5,8 @@
from op_tasks.models import Dataset, \
Product, OpTask, UserProfile, TaskListItem, Experiment, Achievement, UserAchievement

import achievements

# Create your tests here.

# class SmokeTest(TestCase):
@@ -257,6 +259,5 @@ def test_can_assign_user_achievements(self):
self.assertEqual(saved_userachievement.achievement.name, 'One')





def test_can_check_achievements(self):
self.assertEqual(True, True)
@@ -9,7 +9,7 @@
from django.contrib.auth.models import User
from django.utils import timezone
from elasticsearch import Elasticsearch
from achievements import *
import achievements

import exp_portal
import datetime

0 comments on commit 9d26f54

Please sign in to comment.