code: def query_nologin():
          '''
          Query the users who do not login recently (90 days).
          and not send email (120 days).
          time_model: num * month * hours * minite * second
          time_login: 3 * 30 * 24 * 60 * 60
          time_email: 4 * 30 * 24 * 60 * 60
          '''
          time_now = tools.timestamp()
          return TabMember.select().where(
              ((time_now - TabMember.time_login) > 7776000)
              & ((time_now - TabMember.time_email) > 10368000)
          f query_nologin():
          '''
          Query the users who do not login recently (90 days).
          and not send email (120 days).
          time_model: num * month * hours * minite * second
          time_login: 3 * 30 * 24 * 60 * 60
          time_email: 4 * 30 * 24 * 60 * 60
          '''
          time_now = tools.timestamp()
          return TabMember.select().where(
              ((time_now - TabMember.time_login) > 7776000)
              & ((time_now - TabMember.time_email) > 10368000)
          )
docs: Query the users who do not login recently (90 days).
          and not send email (120 days).
          time_model: num * month * hours * minite * second
          time_login: 3 * 30 * 24 * 60 * 60
          time_email: 4 * 30 * 24 * 60 * 60