Skip to content
Snippets Groups Projects
Commit 624c7716 authored by Jochens, Florian's avatar Jochens, Florian
Browse files

fixed bugs in publication.py

parent 4fa2b0c7
No related tags found
No related merge requests found
File added
...@@ -6,8 +6,8 @@ class Publication: ...@@ -6,8 +6,8 @@ class Publication:
""" """
def __init__(self, doi_url: str, title: str def __init__(self, doi_url: str, title: str
, contributors: str, journal: str , contributors: str, journal: str
, publication_date: str, subjects: list[str], num_citations: int = None , publication_date: str, subjects = None, num_citations = None
, references: list[any] = None, citations: list[any] = None ): , references = None, citations = None ):
""" """
Parameters Parameters
---------- ----------
...@@ -133,8 +133,8 @@ Subjects:''') ...@@ -133,8 +133,8 @@ Subjects:''')
class Citation: class Citation:
def __init__(self, doi_url: str, title: str def __init__(self, doi_url: str, title: str
, journal: str, contributors: list[str] , journal: str, contributors = None
, cit_type: str = "Citation"): , cit_type = "Citation"):
""" """
Parameters Parameters
---------- ----------
...@@ -168,7 +168,7 @@ class Citation: ...@@ -168,7 +168,7 @@ class Citation:
# This is just a replica of Citations # This is just a replica of Citations
class Reference: class Reference:
def __init__(self, doi_url: str, title: str, journal: str, contributors: list[str]): def __init__(self, doi_url, title, journal, contributors):
self.title = title self.title = title
self.doi_url = doi_url self.doi_url = doi_url
self.journal = journal self.journal = journal
......
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