Skip to content

Commit

Permalink
Add author
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejkastelic committed Aug 25, 2024
1 parent 0fa81d8 commit 52faa27
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions api_24ur/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ async def get_article_by_url(

return types.Article(
id=article.id,
author=article.source,
title=article.title,
summary=article.summary,
content='\n'.join([item.body if item.body else '' for item in article.body_items or []]),
Expand Down
1 change: 0 additions & 1 deletion api_24ur/schemas.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import dataclasses
import datetime
import typing


Expand Down
1 change: 1 addition & 0 deletions api_24ur/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Comment:
@dataclasses.dataclass
class Article:
id: typing.Optional[str] = None
author: typing.Optional[str] = None
title: typing.Optional[str] = None
summary: typing.Optional[str] = None
content: typing.Optional[str] = None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "24ur-api"
description = "Unofficial 24ur API"
version = "0.1.2"
version = "0.1.3"
readme = "README.md"
authors = [{ name = "Amadej Kastelic", email = "[email protected]" }]
requires-python = "~=3.8"
Expand Down

0 comments on commit 52faa27

Please sign in to comment.