| Conditions | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from django.core.management.base import BaseCommand, CommandError |
||
| 9 | def parse_options(self, options): |
||
| 10 | auth = options['auth'].split(':') |
||
| 11 | self.auth = (auth[0], auth[1]) |
||
| 12 | self.verbosity = options.get('verbosity', 1) |
||
| 13 | host = options['host'] |
||
| 14 | if not host.endswith('/'): |
||
| 15 | host = host + '/' |
||
| 16 | if not host.startswith('http://'): |
||
| 17 | host = 'http://' + host |
||
| 18 | self.host = host |
||
| 19 | self.filename = options['filename'] |
||
| 20 | |||
| 41 | default="data/download.json") |