mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-21 21:07:59 +01:00
Fix invalid status in alpha beta converter
Thanks to Midnight Sapphire for finding this bug.
This commit is contained in:
parent
83b02800d1
commit
e09d67d291
2 changed files with 7 additions and 3 deletions
|
@ -255,6 +255,10 @@ class RootHandler(Handler):
|
|||
@property
|
||||
def completion_status(self) -> Optional[str]:
|
||||
status = self.meta.get('status')
|
||||
|
||||
if status == 'On Hiatus':
|
||||
return 'hiatus'
|
||||
|
||||
return status and status.strip().lower()
|
||||
|
||||
@property
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
"image": "https://cdn-img.fimfiction.net/story/vr3n-1432418803-9-medium",
|
||||
"likes": 365,
|
||||
"short_description": "",
|
||||
"status": "Incomplete",
|
||||
"status": "On Hiatus",
|
||||
"title": "The Greatest Equine Who has Ever Lived!",
|
||||
"total_views": 9943,
|
||||
"url": "https://www.fimfiction.net/story/9/the-greatest-equine-who-has-ever-lived",
|
||||
|
@ -100,7 +100,7 @@
|
|||
126
|
||||
]
|
||||
},
|
||||
"completion_status": "incomplete",
|
||||
"completion_status": "hiatus",
|
||||
"content_rating": "everyone",
|
||||
"cover_image": {
|
||||
"full": "https://cdn-img.fimfiction.net/story/vr3n-1432418803-9-full",
|
||||
|
@ -161,4 +161,4 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue