示例#1
0
def main():
    mongoengine_connect()
    app.run(port=webapp.PORT, host=webapp.HOST)
示例#2
0
from lawdiffs.miner import repos
from lawdiffs.miner.ors.subsection import OrsSubsectionImporter
from lawdiffs.data import models
from lawdiffs.data.client import mongoengine_connect

mongoengine_connect()

importer = OrsSubsectionImporter()

ors_law_code = importer.law_code
repos.wipe_and_init(ors_law_code)
models.LawDivision.drop_collection()
models.LawVersion.drop_collection()

importer.import_version_by_subsection(2011)
示例#3
0
from lawdiffs.miner import repos
from lawdiffs.miner.ors.subsection import OrsSubsectionImporter
from lawdiffs.data import models
from lawdiffs.data.client import mongoengine_connect


mongoengine_connect()

importer = OrsSubsectionImporter()

ors_law_code = importer.law_code
repos.wipe_and_init(ors_law_code)
models.LawDivision.drop_collection()
models.LawVersion.drop_collection()

importer.import_version_by_subsection(2011)