Пример #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()
    }
Пример #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()}