<s> from gitdh . modules import Module <EOL> from gitdh . gitdhutils import mInsertOnStatus <EOL> class CronDeployment ( Module ) : <EOL> def isEnabled ( self , action ) : <EOL> return action == '<STR_LIT>' and not self . dbBe is None <EOL> def postSource ( self , commits ) : <EOL> for commit in commits : <EOL> if self . config . branches . getboolean ( commit . branch , '<STR_LIT>' , False ) : <EOL> commit . status = '<STR_LIT>' <EOL> def filter ( self , commits ) : <EOL> for commit in commits : <EOL> if commit . status == '<STR_LIT>' : <EOL> self . _removeCommit ( commit ) <EOL> def store ( self , commits ) : <EOL> mInsertOnStatus ( '<STR_LIT>' , self . dbBe , commits ) </s>
