Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tholzheim committed May 11, 2024
1 parent 3c32815 commit f34f2fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ceurws/models/ceur.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from sqlmodel import Field, SQLModel


class Volume(SQLModel, table=True): # type: ignore
class Volume(SQLModel, table=True): # type: ignore
"""
a single CEUR-WS Volume
"""
Expand Down Expand Up @@ -58,7 +58,7 @@ class Volume(SQLModel, table=True): # type: ignore
tdtitle: Optional[str] = Field(default=None)


class Paper(SQLModel, table=True): # type: ignore
class Paper(SQLModel, table=True): # type: ignore
"""
Represents a paper with details such as authors, volume number, and title.
"""
Expand Down
10 changes: 5 additions & 5 deletions ceurws/models/dblp2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from sqlmodel import Field, SQLModel


class Scholar(SQLModel, table=True): # type: ignore
class Scholar(SQLModel, table=True): # type: ignore
"""
Represents a scholar with information fetched from DBLP and possibly other sources.
"""
Expand All @@ -21,7 +21,7 @@ class Scholar(SQLModel, table=True): # type: ignore
gnd_id: Optional[str] = None


class Paper(SQLModel, table=True): # type: ignore
class Paper(SQLModel, table=True): # type: ignore
"""
A paper indexed in DBLP with additional details. The paper URL is used as the unique identifier.
"""
Expand All @@ -33,7 +33,7 @@ class Paper(SQLModel, table=True): # type: ignore
pdf_url: Optional[str] = None


class Proceeding(SQLModel, table=True): # type: ignore
class Proceeding(SQLModel, table=True): # type: ignore
"""
A proceeding indexed in DBLP with additional details.
"""
Expand All @@ -44,7 +44,7 @@ class Proceeding(SQLModel, table=True): # type: ignore
dblp_event_id: Optional[str] = None


class Editorship(SQLModel, table=True): # type: ignore
class Editorship(SQLModel, table=True): # type: ignore
"""
Represents the relationship between a scholar and a proceeding, indicating the scholar's role as an editor.
"""
Expand All @@ -53,7 +53,7 @@ class Editorship(SQLModel, table=True): # type: ignore
dblp_author_id: str = Field(foreign_key="scholar.dblp_author_id", primary_key=True)


class Authorship(SQLModel, table=True): # type: ignore
class Authorship(SQLModel, table=True): # type: ignore
"""
Represents the relationship between a scholar and a paper, capturing the authorship details.
"""
Expand Down
3 changes: 1 addition & 2 deletions scripts/getVolumeIndexPages.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from io import BytesIO
from pathlib import Path
from zipfile import ZipFile
from urllib.request import urlopen

from zipfile import ZipFile

resp = urlopen("https://github.com/WolfgangFahl/pyCEURmake/releases/download/v0.4.0/volume_index_pages.zip")
zip_file = ZipFile(BytesIO(resp.read()))
Expand Down

0 comments on commit f34f2fd

Please sign in to comment.