1.1 --- a/imiptools/stores/database/common.py Fri Apr 22 00:09:07 2016 +0200
1.2 +++ b/imiptools/stores/database/common.py Fri Apr 22 15:03:16 2016 +0200
1.3 @@ -52,7 +52,11 @@
1.4
1.5 "Return a list of users."
1.6
1.7 - query = "select distinct store_user from freebusy"
1.8 + query = "select distinct store_user from (" \
1.9 + "select store_user from freebusy " \
1.10 + "union all select store_user from objects " \
1.11 + "union all select store_user from recurrences" \
1.12 + ") as users"
1.13 self.cursor.execute(query)
1.14 return [r[0] for r in self.cursor.fetchall()]
1.15