Skip to content

Instantly share code, notes, and snippets.

@mcotton
Last active June 24, 2017 20:32
Show Gist options
  • Save mcotton/bda59455a929cbb77721f63fc2639768 to your computer and use it in GitHub Desktop.
Save mcotton/bda59455a929cbb77721f63fc2639768 to your computer and use it in GitHub Desktop.
emergency add checklist to company/projects
execfile('remote.py')
co = Company.query(Company.name=="Pattern Energy").get()
add_checklist_to_company(company=co, filename="inspection-Pattern.json")
projects = Project.query(Project.company==co.key).fetch()
for p in projects:
add_checklist_to_project(project=p, filename="inspection-Pattern-GETS.json")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment