]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/bin/patchwork-cron.py
tox: Add tox.ini file
[patchwork] / apps / patchwork / bin / patchwork-cron.py
index e9bd0c1cf9f07ff3dba81500bd27bbdaebfc5f21..148e97c764c2177007842c55a407fcba00031f72 100755 (executable)
@@ -1,13 +1,15 @@
 #!/usr/bin/env python
 
 import sys
-from patchwork.utils import send_notifications
+from patchwork.utils import send_notifications, do_expiry
 
 def main(args):
     errors = send_notifications()
     for (recipient, error) in errors:
         print "Failed sending to %s: %s" % (recipient.email, ex)
 
+    do_expiry()
+
 if __name__ == '__main__':
     sys.exit(main(sys.argv))