1.1 --- a/imiptools/stores/database/common.py Sun Jun 05 00:12:28 2016 +0200
1.2 +++ b/imiptools/stores/database/common.py Sun Jun 05 00:41:02 2016 +0200
1.3 @@ -825,7 +825,7 @@
1.4 "Return a list of quotas."
1.5
1.6 query = "select distinct quota from (" \
1.7 - "select quota from quota_freebusy " \
1.8 + "select distinct store_user as quota from freebusy_other " \
1.9 "union all select quota from quota_limits" \
1.10 ") as quotas"
1.11 self.cursor.execute(query)
1.12 @@ -840,7 +840,7 @@
1.13
1.14 query, values = self.get_query(
1.15 "select distinct user_group from (" \
1.16 - "select user_group from quota_freebusy :condition " \
1.17 + "select distinct other as user_group from freebusy_other :condition " \
1.18 "union all select user_group from quota_delegates :condition" \
1.19 ") as users",
1.20 columns, values)