summaryrefslogtreecommitdiff
path: root/ricky/pbbreaker
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-12-08 12:46:23 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2015-12-08 12:46:23 -0800
commit0b994e3b71c2c0b463d100edd07745af565c7a59 (patch)
tree2a7c7b5834859684400e770a22eecb62fc41592b /ricky/pbbreaker
parent17fff32864cf33bbec2b531a6123618acf74f3f7 (diff)
changed structure, added utils
Diffstat (limited to 'ricky/pbbreaker')
-rw-r--r--ricky/pbbreaker/__init__.py1
-rw-r--r--ricky/pbbreaker/params.py5
2 files changed, 3 insertions, 3 deletions
diff --git a/ricky/pbbreaker/__init__.py b/ricky/pbbreaker/__init__.py
index 2a1c105..e17f77f 100644
--- a/ricky/pbbreaker/__init__.py
+++ b/ricky/pbbreaker/__init__.py
@@ -10,6 +10,5 @@ class PbBreaker(Pb):
def params_init(self):
new_params = Params()
- # new_params = self.get_from_server()
new_params.api = self
return new_params
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