summaryrefslogtreecommitdiff
path: root/ql/orm/utils.py
blob: e5d96e2b47336a61550e20d45210442b703578f3 (plain)
1
2
3
4
5
6
7
from .models import Team


def get_num_of_tables():
    num_of_teams = Team.objects.count()
    assert num_of_teams % 2 == 0
    return int(num_of_teams / 2)