-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update code to new TED-API version #339
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ints pls
ted_sws/core/model/metadata.py
Outdated
@@ -103,9 +105,15 @@ class TEDMetadata(Metadata): | |||
PD: str = None | |||
PR: str = None | |||
RC: List[str] = None | |||
RN: int = None | |||
RN: List[int] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ints pls only str
@@ -90,8 +90,7 @@ def notice_2015(): | |||
@pytest.fixture | |||
def notice_2018(): | |||
notice_data = read_notice("045279-2018.json") | |||
notice_content = base64.b64decode(notice_data["content"]).decode(encoding="utf-8") | |||
xml_manifestation = XMLManifestation(object_data=notice_content) | |||
xml_manifestation = XMLManifestation(object_data=notice_data["content"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks cleaner
SonarCloud Quality Gate failed. |
No description provided.