#NEWLINE# def block_before_competition( return_result ) : #NEWLINE# #INDENT# '\n    Wraps a routing function that should be blocked before the start time of the competition\n    ' #NEWLINE# def decorator( f ) : #NEWLINE# #INDENT# '\n        Inner decorator\n        ' #NEWLINE# @ wraps ( f ) #NEWLINE# def wrapper( * args , **kwds ) : #NEWLINE# #INDENT# if ( datetime . utcnow ( ) . timestamp ( ) > api . config . start_time . timestamp ( ) ) : #NEWLINE# #INDENT# return f ( * args , ** kwds ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return return_result #NEWLINE# #UNINDENT# #UNINDENT# return wrapper #NEWLINE# #UNINDENT# return decorator