X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fcommon%2Fagendav_plugin.rb;h=c5e7d7719178dd5035f46b39a2c8cf79c78399ae;hp=4c3a5cff3bc4a1acef6270a8de55ce7d800f5a8d;hb=579a22471329c71552bcb4077a0590d60cdec784;hpb=80199942f91013b48ec65bd89b9890c07ff973f3 diff --git a/lib/common/agendav_plugin.rb b/lib/common/agendav_plugin.rb index 4c3a5cf..c5e7d77 100644 --- a/lib/common/agendav_plugin.rb +++ b/lib/common/agendav_plugin.rb @@ -35,11 +35,11 @@ module AgendavPlugin connection = PG::Connection.new(@db_hash) - # There's also an "owner" field in the "shares" table, but it - # contains a principal URL and not a bare username. Thus its - # format depends on the CalDAV server configuration, and isn't - # predictable. - sql_query = 'SELECT username FROM prefs' + # There are also "owner" and "with" fields in the "shares" table, + # but they contains principal URLs and not a bare username. Thus + # their format depends on the CalDAV server configuration, and + # isn't predictable. + sql_query = 'SELECT username FROM prefs;' begin connection.query(sql_query) do |result|