 
 import logger from '../log'
 
-import {REGION_CONTESTS} from './downloadContests'
+import {REGION_CONTESTS, ROI_CONTESTS} from './downloadContests'
 
 url = 'https://informatics.mccme.ru/course/view.php?id=1135'
 

        href =  "https://informatics.mccme.ru/mod/statements/view.php?id=#{contest}"
        @parseContest(href, contest, name, order, 0)

    makeRegYearMaterial: (year, contests) ->
        materials = []
        for contest, i in contests
            name = "#{year}, #{i+1} тур"
            parsed = @makeRegContestMaterial(contest, name, i)
            materials.push(parsed)
        materials = await finalizeMaterialsList(materials)
        title = year

        material = new Material
            _id: "reg#{year}"
            order: year
            type: "level"
            indent: 0
            title: title
            content: ""
            materials: [(await @makeLabelMaterial("reg#{year}head", 0, 0, "<h2>#{title}</h2>")).material]
        for m in materials
            mm = clone(m.material)
            delete mm.materials

            material: material
            tree: tree

    makeRegMaterial: (prefix, all_contests, title, order) ->
        materials = []
        for year, contests of all_contests
            parsed = @makeRegYearMaterial(prefix, year, contests)
            materials.push(parsed)
        materials = await finalizeMaterialsList(materials)

        material = new Material
            _id: prefix
            order: order
            type: "level"
            indent: 0
            title: title
            content: ""
            materials: [(await @makeLabelMaterial("#{prefix}head", 0, 0, "<h2>#{title}</h2>")).material]
        for m in materials
            mm = clone(m.material)
            delete mm.materials
