Created
June 10, 2015 15:11
-
-
Save mpobrien/ae8aa430cbf2f7eb8a75 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymongo | |
# TODO have this file take the contents of the .yml file and put it into the project_ref file. | |
db = pymongo.Connection()["mci_dev"] | |
collection = db["project_ref"] | |
local_config_file = open("config_dev/project/sample.yml") | |
local_config = "\n".join(local_config_file.readlines()) | |
db.project_ref.update({"identifier" : "sample"}, {"identifier" : "sample", "owner_name": "mpobrien", "branch_name": "master", | |
"repokind": "github", "enabled": True, "repo_name": "sample", | |
"tracked": True, "batch_time": 120, "local_config" : local_config, "remote": False},upsert=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment