Skip to content
Snippets Groups Projects
Commit 09894fcc authored by inso's avatar inso
Browse files

Fix an error in paths of community

parent 8066f79f
No related branches found
No related tags found
No related merge requests found
...@@ -20,12 +20,7 @@ from .. import logging ...@@ -20,12 +20,7 @@ from .. import logging
logger = logging.getLogger("ucoin/registry/community") logger = logging.getLogger("ucoin/registry/community")
class Base(Registry): class Current(Registry):
def __init__(self, server=None, port=None):
super().__init__('hdc/registry/community', server, port)
class Current(Base):
"""GET the last valid membership document for member pgp_fingerprint""" """GET the last valid membership document for member pgp_fingerprint"""
def __init__(self, pgp_fingerprint=None, server=None, port=None): def __init__(self, pgp_fingerprint=None, server=None, port=None):
...@@ -36,7 +31,7 @@ class Current(Base): ...@@ -36,7 +31,7 @@ class Current(Base):
- `number`: amendment number - `number`: amendment number
""" """
super().__init__(server, port) super().__init__(server=server, port=port)
self.pgp_fingerprint = pgp_fingerprint self.pgp_fingerprint = pgp_fingerprint
...@@ -45,7 +40,7 @@ class Current(Base): ...@@ -45,7 +40,7 @@ class Current(Base):
**kwargs).json() **kwargs).json()
class History(Base): class History(Registry):
"""GET the all received and stored membership documents""" """GET the all received and stored membership documents"""
def __init__(self, pgp_fingerprint=None, server=None, port=None): def __init__(self, pgp_fingerprint=None, server=None, port=None):
...@@ -56,7 +51,7 @@ class History(Base): ...@@ -56,7 +51,7 @@ class History(Base):
- `number`: amendment number - `number`: amendment number
""" """
super().__init__(server, port) super().__init__(server=server, port=port)
self.pgp_fingerprint = pgp_fingerprint self.pgp_fingerprint = pgp_fingerprint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment