diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-29 17:44:05 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-29 17:44:05 -0800 |
| commit | f3cfd54c876ba3e7540443c2f442d2baa22acef8 (patch) | |
| tree | 583c088e6f183232ddb21bd86f68c9e7b53ccccf /ricky/imgradient/__init__.py | |
| parent | 9a7bf3bffb2a8459e66b988aaff53611723b5ab4 (diff) | |
switched to json probabilities
Diffstat (limited to 'ricky/imgradient/__init__.py')
| -rw-r--r-- | ricky/imgradient/__init__.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/ricky/imgradient/__init__.py b/ricky/imgradient/__init__.py index 72efca1..1d8da3d 100644 --- a/ricky/imgradient/__init__.py +++ b/ricky/imgradient/__init__.py @@ -1 +1,16 @@ -from ricky.imgradient.imgradient import ImGradient +"""class for the imgradient api handler""" +from ricky.im import Im +from ricky.imgradient.params import Params +from ricky.config import IMGRADIENT_URL + + +class ImGradient(Im): + def __init__(self): + super(ImGradient, self).__init__() + self.url = IMGRADIENT_URL + + def params_init(self): + new_params = Params() + #new_params = self.get_from_server() + new_params.api = self + return new_params |
