Skip to content

Commit

Permalink
Fixed an internal server error
Browse files Browse the repository at this point in the history
Deutschlandfunk stopped supplying authors and since they are not used
anywhere in the application they have now been removed.

Signed-off-by: MaFeLP <[email protected]>
  • Loading branch information
MaFeLP committed Aug 29, 2024
1 parent 4ff8cd6 commit 332deae
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 1 addition & 3 deletions apispec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,16 +317,14 @@ components:
article:
description: "The article object"
type: object
required: ["kicker", "title", "description", "author", "content", "figures", "key", "date", "localeDate"]
required: ["kicker", "title", "description", "content", "figures", "key", "date", "localeDate"]
properties:
kicker:
type: string
title:
type: string
description:
type: string
author:
type: string
content:
type: object
required: ["html", "plaintext"]
Expand Down
1 change: 0 additions & 1 deletion app/dlf.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def parse_article(html: str) -> dict[str, str]:
"kicker": header.find("span", {"class": "headline-kicker"}).text,
"title": header.find("span", {"class": "headline-title"}).text,
"description": header.find("p", {"class": "article-header-description"}).text,
"author": header.find("div", {"class": "article-header-author"}).span.text,
"content": {
"html": section.decode_contents().strip(),
"plaintext": section.text.strip(),
Expand Down
9 changes: 0 additions & 9 deletions src/api-client/models/Article.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ export interface Article {
* @memberof Article
*/
description: string;
/**
*
* @type {string}
* @memberof Article
*/
author: string;
/**
*
* @type {ArticleContent}
Expand Down Expand Up @@ -95,7 +89,6 @@ export function instanceOfArticle(value: object): boolean {
if (!('kicker' in value)) return false;
if (!('title' in value)) return false;
if (!('description' in value)) return false;
if (!('author' in value)) return false;
if (!('content' in value)) return false;
if (!('figures' in value)) return false;
if (!('key' in value)) return false;
Expand All @@ -117,7 +110,6 @@ export function ArticleFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
'kicker': json['kicker'],
'title': json['title'],
'description': json['description'],
'author': json['author'],
'content': ArticleContentFromJSON(json['content']),
'figures': ((json['figures'] as Array<any>).map(ArticleFiguresInnerFromJSON)),
'key': json['key'],
Expand All @@ -135,7 +127,6 @@ export function ArticleToJSON(value?: Article | null): any {
'kicker': value['kicker'],
'title': value['title'],
'description': value['description'],
'author': value['author'],
'content': ArticleContentToJSON(value['content']),
'figures': ((value['figures'] as Array<any>).map(ArticleFiguresInnerToJSON)),
'key': value['key'],
Expand Down

0 comments on commit 332deae

Please sign in to comment.