<s> from __future__ import unicode_literals <EOL> from django . utils . timezone import now , timedelta <EOL> from django . core . management . base import BaseCommand , CommandError <EOL> from django . db . models import Count <EOL> from pybb . models import Topic <EOL> class Command ( BaseCommand ) : <EOL> help = '<STR_LIT>' <EOL> def handle ( self , * args , ** kwargs ) : <EOL> check_time = now ( ) - timedelta ( seconds = <NUM_LIT:10> ) <EOL> topics = Topic . objects . filter ( created__lt = check_time ) . annotate ( counter = Count ( '<STR_LIT>' ) ) . filter ( counter = <NUM_LIT:0> ) <EOL> count = topics . count ( ) <EOL> print ( '<STR_LIT>' % count ) <EOL> if count : <EOL> answer = raw_input ( '<STR_LIT>' ) <EOL> if answer . lower ( ) == '<STR_LIT:y>' : <EOL> print ( '<STR_LIT>' ) <EOL> topics . delete ( ) <EOL> print ( '<STR_LIT>' ) <EOL> else : <EOL> print ( '<STR_LIT>' ) </s>
