Skip to content

Commit

Permalink
Merge pull request #36 from rafaelhdr/develop
Browse files Browse the repository at this point in the history
Change deprecated options_list to add_arguments
  • Loading branch information
fcurella committed Mar 27, 2017
2 parents e44eb00 + 7a5d5f8 commit fecb7d2
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions recommends/management/commands/recommends_precompute.py
Expand Up @@ -3,21 +3,19 @@

from datetime import datetime
import dateutil.relativedelta
from optparse import make_option

import warnings


class Command(BaseCommand):
help = 'Calculate recommendations and similarities based on ratings'
option_list = BaseCommand.option_list + (
make_option('--verbose',
action='store_true',
dest='verbose',
default=False,
help='verbose mode'
),
)

def add_arguments(self, parser):
parser.add_argument('--verbose',
action='store_true',
dest='verbose',
default=False,
help='verbose mode')

def handle(self, *args, **options):
verbosity = int(options.get('verbosity', 0))
Expand Down

0 comments on commit fecb7d2

Please sign in to comment.