Verified Commit 74594f43 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix code style

parent 61d13ad6
utils.conscribo package
=======================
.. automodule:: utils.conscribo
:members:
:undoc-members:
:show-inheritance:
Submodules
----------
utils.conscribo.api module
--------------------------
.. automodule:: utils.conscribo.api
:members:
:undoc-members:
:show-inheritance:
utils.conscribo.objects module
------------------------------
.. automodule:: utils.conscribo.objects
:members:
:undoc-members:
:show-inheritance:
......@@ -11,6 +11,7 @@ Subpackages
.. toctree::
utils.conscribo
utils.management
utils.templatetags
......
......@@ -6,8 +6,8 @@ from django.template.defaultfilters import date
from requests import HTTPError
from members.models import Member
from utils.conscribo.api import ConscriboApi, ResultException
from utils.conscribo.objects import Command as ApiCommand
from utils.conscribo.api import ConscriboApi
from utils.conscribo.objects import Command as ApiCommand, ResultException
logger = logging.getLogger(__name__)
......@@ -63,10 +63,10 @@ class Command(BaseCommand):
'plaats': profile.address_city,
'land': 'Nederland',
'bankrekeningnummer': {
'name': '',
'bic': '',
'iban': profile.bank_account,
},
'name': '',
'bic': '',
'iban': profile.bank_account,
},
}
replace_commands.append(ApiCommand(
......
import requests
from utils.conscribo.objects import *
from utils.conscribo.objects import Request, Result
class ConscriboApi:
......
......@@ -69,7 +69,6 @@ class Result(object):
'notification': []
}).get('notification')
@staticmethod
def single(data):
return Result(data.get('result', {}))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment