skip expired users
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 29 Aug 2015 12:47:18 +0000 (14:47 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 29 Aug 2015 12:47:18 +0000 (14:47 +0200)
sql/group.sql

index 47c28b8..b862457 100644 (file)
@@ -8,4 +8,4 @@ select
        concat('uid=',replace(userid,'@ffzg.hr',''),',ou=',c.categorycode,',dc=ffzg,dc=hr') as members
 from categories c
 join borrowers b on b.categorycode = c.categorycode
-where length(userid) > 0
+where length(userid) > 0 and userid not like '%@expired'