Skip to content

Commit

Permalink
Trim
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jul 16, 2017
1 parent 2ea12ae commit 4e698aa
Showing 1 changed file with 9 additions and 37 deletions.
46 changes: 9 additions & 37 deletions calaccess_processed/management/commands/loadocdmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,60 +36,32 @@ def load(self):
"""
Load all of the processed models.
"""
call_command(
'loadparties',
options = dict(
verbosity=self.verbosity,
no_color=self.no_color,
)
call_command('loadparties', **options)
self.duration()

call_command(
'loadballotmeasurecontests',
verbosity=self.verbosity,
no_color=self.no_color,
)
call_command('loadballotmeasurecontests', **options)
self.duration()

call_command(
'loadretentioncontests',
verbosity=self.verbosity,
no_color=self.no_color,
)
call_command('loadretentioncontests', **options)
self.duration()

call_command(
'loadcandidatecontests',
verbosity=self.verbosity,
no_color=self.no_color,
)
call_command('loadcandidatecontests', **options)
self.duration()

call_command(
'mergepersonsbyfilerid',
verbosity=self.verbosity,
no_color=self.no_color,
)
call_command('mergepersonsbyfilerid', **options)
self.duration()

call_command(
'loadcandidaciesfrom501s',
verbosity=self.verbosity,
no_color=self.no_color,
)
call_command('loadcandidaciesfrom501s', **options)
self.duration()

call_command(
'mergepersonsbycontestandname',
verbosity=self.verbosity,
no_color=self.no_color,
)
call_command('mergepersonsbycontestandname', **options)
self.duration()

call_command(
'loadincumbentofficeholders',
verbosity=self.verbosity,
no_color=self.no_color,
)
call_command('loadincumbentofficeholders', **options)
self.duration()

def archive(self):
Expand Down

0 comments on commit 4e698aa

Please sign in to comment.