From 0b994e3b71c2c0b463d100edd07745af565c7a59 Mon Sep 17 00:00:00 2001 From: pepperpepperpepper Date: Tue, 8 Dec 2015 12:46:23 -0800 Subject: changed structure, added utils --- ricky/pbbreaker/params.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ricky/pbbreaker/params.py') diff --git a/ricky/pbbreaker/params.py b/ricky/pbbreaker/params.py index 57c93f3..e8438b1 100644 --- a/ricky/pbbreaker/params.py +++ b/ricky/pbbreaker/params.py @@ -4,7 +4,7 @@ from ricky.param.imageurl import PbageUrl from ricky.param.enum import Enum from ricky.param.constrainednumber import ConstrainedNumber from ricky.param.bool import Bool - +from ricky.config import PBBREAKER_URL _BREAKTYPE_OPTIONS = [ "CLASSIC", @@ -33,7 +33,7 @@ _FINALFORMAT_OPTIONS = [ class Params(_Params): def __init__(self): - self._params = ( + super(Params, self).__init__( Username(name="username", required=False), PbageUrl(name="url", required=True), Enum( @@ -56,3 +56,4 @@ class Params(_Params): options=_BREAKMODE_OPTIONS), Bool(name="expanded", required=False) ) + self._url = PBBREAKER_URL -- cgit v1.2.3-70-g09d2