Fix invalid author ID in alpha beta converter

This commit is contained in:
Joakim Soderlund 2019-08-30 21:58:28 +02:00
parent a5613911bf
commit 03452e1221
2 changed files with 6 additions and 2 deletions

View file

@ -129,9 +129,13 @@ class AuthorHandler(Handler):
'url', 'url',
) )
@property
def id(self):
return int(self.meta['id'])
@property @property
def url(self): def url(self):
uid = int(self.id) uid = self.id
name = urlquote(str(self.name)) name = urlquote(str(self.name))
return f'{HOST}/user/{uid}/{name}' return f'{HOST}/user/{uid}/{name}'

View file

@ -3,7 +3,7 @@
{ {
"alpha": { "alpha": {
"author": { "author": {
"id": 18, "id": "18",
"name": "Sethisto" "name": "Sethisto"
}, },
"categories": { "categories": {