def block_before_competition(return_result):

    def decorator(f):
        """
        Inner decorator
        """

        @wraps(f)
        def wrapper(*args, **kwds):
            if datetime.utcnow().timestamp() > api.config.start_time.timestamp():
                return f(*args, **kwds)
            else:
                return return_result
        return wrapper
    return decorator
Wraps a routing function that should be blocked before the start time of the competition
dataset/ETHPy150Open IceCTF/ctf-platform/api/api/annotations.py/block_before_competition