# Path: sort_utils.py
# def sort_setlist(setlist):
#   sorted_setlist = sorted(setlist, key=attrgetter('tournament.date', 'id'))
#   try:
#   	return sorted_setlist
#   except:
#   	UnicodeEncodeError
# 
# Path: misc_utils.py
# def print_ignore(input):
# 	try:
# 		print input
# 	except UnicodeError:
# 		pass


from app import app, db
from app.models import *
from sort_utils import sort_setlist
from misc_utils import print_ignore
from trueskill import setup, Rating, quality_1vs1, rate_1vs1
import time

# Trueskill constants for rating environment setup
MU = 25
SIGMA = 8.333333333333334
STD = 1
CONS_MU = MU - (STD*SIGMA)

# Path: sort_utils.py
# def sort_setlist(setlist):
#   sorted_setlist = sorted(setlist, key=attrgetter('tournament.date', 'id'))
#   try:
#   	return sorted_setlist
#   except:
#   	UnicodeEncodeError
# 
# Path: misc_utils.py
# def print_ignore(input):
# 	try:
# 		print input
# 	except UnicodeError:
# 		pass


# Path: trueskill_functions.py
from app import app, db
from app.models import *
from sort_utils import sort_setlist
from misc_utils import print_ignore
from trueskill import setup, Rating, quality_1vs1, rate_1vs1
import time


# Trueskill constants for rating environment setup
MU = 25
SIGMA = 8.333333333333334
STD = 1
CONS_MU = MU - (STD*SIGMA)

BETA = 4.166666666666667