Exemplo n.º 1
0
def serialize_blockings(data):
    from indico.modules.rb.schemas import simple_blockings_schema
    return {
        dt.isoformat(): simple_blockings_schema.dump(data)
        for dt, data in data.items()
    }
Exemplo n.º 2
0
def serialize_blockings(data):
    from indico.modules.rb.schemas import (simple_blockings_schema)
    return {dt.isoformat(): simple_blockings_schema.dump(data) for dt, data in data.iteritems()}