mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Removed a few debug print statements that are no longer needed
This commit is contained in:
@@ -111,7 +111,6 @@ class EveAPIProxyHandler(BaseHandler):
|
|||||||
obj = get_object_or_404(EVEAccount, pk=params['userid'])
|
obj = get_object_or_404(EVEAccount, pk=params['userid'])
|
||||||
params['apikey'] = obj.api_key
|
params['apikey'] = obj.api_key
|
||||||
|
|
||||||
print params
|
|
||||||
cached_doc = CachedDocument.objects.api_query(url_path, params, exceptions=False)
|
cached_doc = CachedDocument.objects.api_query(url_path, params, exceptions=False)
|
||||||
|
|
||||||
return HttpResponse(cached_doc.body)
|
return HttpResponse(cached_doc.body)
|
||||||
|
|||||||
@@ -157,7 +157,6 @@ def admin_applications(request):
|
|||||||
limit = request.get['l']
|
limit = request.get['l']
|
||||||
else:
|
else:
|
||||||
limit = 10
|
limit = 10
|
||||||
print query, limit
|
|
||||||
apps = Application.objects.filter(character__name__icontains=query)[:limit]
|
apps = Application.objects.filter(character__name__icontains=query)[:limit]
|
||||||
else:
|
else:
|
||||||
view_status = [APPLICATION_STATUS_AWAITINGREVIEW, APPLICATION_STATUS_ACCEPTED, APPLICATION_STATUS_QUERY]
|
view_status = [APPLICATION_STATUS_AWAITINGREVIEW, APPLICATION_STATUS_ACCEPTED, APPLICATION_STATUS_QUERY]
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ class UpdateAPIs():
|
|||||||
def job(self):
|
def job(self):
|
||||||
delta = datetime.timedelta(seconds=self.last_update_delay)
|
delta = datetime.timedelta(seconds=self.last_update_delay)
|
||||||
|
|
||||||
print delta
|
|
||||||
self._logger.debug("Updating accounts older than %s" % (datetime.datetime.now() - delta))
|
self._logger.debug("Updating accounts older than %s" % (datetime.datetime.now() - delta))
|
||||||
|
|
||||||
for acc in RedditAccount.objects.filter(last_update__lt=(datetime.datetime.now() - delta)):
|
for acc in RedditAccount.objects.filter(last_update__lt=(datetime.datetime.now() - delta)):
|
||||||
|
|||||||
@@ -36,8 +36,6 @@ def UserServiceAccountForm(user):
|
|||||||
services = Service.objects.filter(groups__in=user.groups.all(),active=1).exclude(id__in=ServiceAccount.objects.filter(user=user).values('service')).distinct()
|
services = Service.objects.filter(groups__in=user.groups.all(),active=1).exclude(id__in=ServiceAccount.objects.filter(user=user).values('service')).distinct()
|
||||||
chars = EVEPlayerCharacter.objects.filter(eveaccount__user=user)
|
chars = EVEPlayerCharacter.objects.filter(eveaccount__user=user)
|
||||||
|
|
||||||
print len(services)
|
|
||||||
|
|
||||||
class ServiceAccountForm(forms.Form):
|
class ServiceAccountForm(forms.Form):
|
||||||
""" Service Account Form """
|
""" Service Account Form """
|
||||||
|
|
||||||
|
|||||||
@@ -68,9 +68,7 @@ class SSOUser(models.Model):
|
|||||||
# Generate the list of groups to add/remove
|
# Generate the list of groups to add/remove
|
||||||
delgroups = set(set(self.user.groups.all()) & set(corpgroups)) - set(chargroups)
|
delgroups = set(set(self.user.groups.all()) & set(corpgroups)) - set(chargroups)
|
||||||
addgroups = set(chargroups) - set(set(self.user.groups.all()) & set(corpgroups))
|
addgroups = set(chargroups) - set(set(self.user.groups.all()) & set(corpgroups))
|
||||||
|
|
||||||
print "Add: ", addgroups, "Del:", delgroups, "Current:", self.user.groups.all()
|
|
||||||
|
|
||||||
for g in delgroups:
|
for g in delgroups:
|
||||||
self.user.groups.remove(g)
|
self.user.groups.remove(g)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user