public void doGet(HttpServletRequest req, HttpServletResponse resp) {
QueryResultIterator<Entity> i = NoSignupDatastore.getAll();
while(i.hasNext()){
Entity e = i.next();
String email = (String) e.getProperty(NoSignupDatastore.EMAIL_PROPERTY);
String phone = (String) e.getProperty(NoSignupDatastore.PHONE_NUMBER_PROPERTY);
String dept = (String) e.getProperty(NoSignupDatastore.DEPT_PROPERTY);
String course = (String) e.getProperty(NoSignupDatastore.COURSE_PROPERTY);
String section = (String) e.getProperty(NoSignupDatastore.SECTION_PROPERTY);
if((Boolean)e.getProperty(NoSignupDatastore.ACTIVATED_PROPERTY)){
UBCSectionDetailService details = new UBCSectionDetailService();
details.init(dept, course, section);
if(details.getGenSeatsRemain() > 0) {
String email_str = EMAIL_NOTIFICATION.replaceAll("<DEPARTMENT>", dept).replaceAll("<COURSE>", course).replaceAll("<SECTION>", section).replaceAll("<NUMBER_OF_SEATS>", ""+details.getGenSeatsRemain()).replaceAll("<TIMESTAMP>", Calendar.getInstance(TimeZone.getTimeZone("PST")).getTime().toString());
String phone_str = SMS_NOTIFICATION.replaceAll("<DEPARTMENT>", dept).replaceAll("<COURSE>", course).replaceAll("<SECTION>", section).replaceAll("<NUMBER_OF_SEATS>", ""+details.getGenSeatsRemain()).replaceAll("<TIMESTAMP>", Calendar.getInstance(TimeZone.getTimeZone("PST")).getTime().toString());