Diverse Code Cleanups
*Code wurde PEP-8 gerecht formatiert * Kleine Fehler die der PyCharm Inspector beanstandet wurden korrigiert
This commit is contained in:
committed by
Christian Berg
parent
f34281089d
commit
86a0db050d
@@ -1,9 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
"""
|
||||
Created on 23.05.2011
|
||||
|
||||
@author: christian
|
||||
'''
|
||||
"""
|
||||
from django.core.cache import cache
|
||||
from django.db import transaction
|
||||
from mahjong_ranking import models
|
||||
@@ -11,10 +11,10 @@ from . import logger
|
||||
|
||||
|
||||
class DenormalizationUpdateMiddleware(object):
|
||||
'''
|
||||
"""
|
||||
This Class deferres the recalculation for the Otaku XP at the end of a
|
||||
response.
|
||||
'''
|
||||
"""
|
||||
|
||||
def process_response(self, request, response):
|
||||
if request.method != 'POST':
|
||||
@@ -57,7 +57,7 @@ class DenormalizationUpdateMiddleware(object):
|
||||
user_id=user_id, season_id=season_id)[0]
|
||||
ranking.recalculate()
|
||||
else:
|
||||
logger.error('Season: %i; User %i - existiert nicht!', season_id, user_id)
|
||||
logger.error('Season: %i; Benutzer Nr. %i - existiert nicht!', season_id, user_id)
|
||||
cache.set('ladder_ranking_queue', ladder_ranking_queue, 360)
|
||||
transaction.commit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user