Skip to content

Commit

Permalink
Merge pull request #5217 from dimagi/cleanup
Browse files Browse the repository at this point in the history
rename app to doc
  • Loading branch information
dannyroberts committed Jan 6, 2015
2 parents 7112229 + 5e67c16 commit dc66ff7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions corehq/apps/domainsync/management/commands/copy_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ def handle(self, *args, **options):
raise CommandError('Usage is copy_doc %s' % self.args)

sourcedb = Database(args[0])
app_id = args[1]
doc_id = args[1]
domain = args[2] if len(args) == 3 else None

app_json = sourcedb.get(app_id)
doc_json = sourcedb.get(doc_id)
if domain:
app_json['domain'] = domain
dt = DocumentTransform(app_json, sourcedb)
doc_json['domain'] = domain
dt = DocumentTransform(doc_json, sourcedb)
save(dt, get_db())

0 comments on commit dc66ff7

Please sign in to comment.