from datetime import date, timedelta


def get_cutoff_date(days):
    """Calculate the cutoff date or return None if no time period was set."""
    if days is None or type(days) != int:
        return None
    else:
        if days >= 0:
            return date.today() - timedelta(days=days)
        else:
            return None

@@ -226,17 +226,16 @@
 f days %3E
-=
  0:%0A    
@@ -285,16 +285,92 @@
 s=days)%0A
+        elif days == 0:%0A            return date.today() + timedelta(days=2)%0A
         

Make it so a cutoff of 0 leads to no invites/registrations being shown.