Package commands :: Module clean_expired_projects
[hide private]
[frames] | no frames]

Source Code for Module commands.clean_expired_projects

 1  import click 
 2  from coprs import db_session_scope 
 3  from coprs.logic.complex_logic import ComplexLogic 
4 5 6 @click.command() 7 -def clean_expired_projects():
8 """ 9 Clean all the expired temporary projects. This command is meant to be 10 executed by cron. 11 """ 12 13 with db_session_scope(): 14 ComplexLogic.delete_expired_projects()
15