Workout With Friends
Stay fit with a little motivation
 All Classes Namespaces Files Functions Variables Properties
cleanup.py
Go to the documentation of this file.
1 import transaction
2 from wowf.lib.utils import get_subclasses
3 from wowf.models import tokens
4 from wowf.scripts import BaseCommand, make_main
5 
6 
8 
9  def run(self):
10  transaction.begin()
12  transaction.commit()
13 
15  for cls in get_subclasses(tokens, tokens.Token):
16  cls.delete_expired()
17 
18 
19 main = make_main(CleanupCommand)
20