diff options
Diffstat (limited to 'ricky/pbpattern')
| -rwxr-xr-x | ricky/pbpattern/__init__.py | 1 | ||||
| -rw-r--r-- | ricky/pbpattern/params.py | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ricky/pbpattern/__init__.py b/ricky/pbpattern/__init__.py index fe475cb..4351713 100755 --- a/ricky/pbpattern/__init__.py +++ b/ricky/pbpattern/__init__.py @@ -9,6 +9,5 @@ class PbPattern(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/pbpattern/params.py b/ricky/pbpattern/params.py index ea789cd..8c3a885 100644 --- a/ricky/pbpattern/params.py +++ b/ricky/pbpattern/params.py @@ -2,12 +2,12 @@ from ricky.params import Params as _Params from ricky.param.username import Username from ricky.param.imageurl import PbageUrl from ricky.param.enum import Enum -from ricky.config import PATTERN_URL_BASE +from ricky.config import PATTERN_URL_BASE, PBPATTERN_URL class Params(_Params): def __init__(self): - self._params = ( + super(Params, self).__init__( Username(name="username", required=False), PbageUrl(name="image_url", required=True), Enum( @@ -16,6 +16,7 @@ class Params(_Params): options=self._get_pattern_urls() ) ) + self._url = PBPATTERN_URL def _get_pattern_urls(self): return set( |
