mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-29 08:08:00 +01:00
Fix invalid author ID in alpha beta converter
This commit is contained in:
parent
a5613911bf
commit
03452e1221
2 changed files with 6 additions and 2 deletions
|
@ -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}'
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
"alpha": {
|
"alpha": {
|
||||||
"author": {
|
"author": {
|
||||||
"id": 18,
|
"id": "18",
|
||||||
"name": "Sethisto"
|
"name": "Sethisto"
|
||||||
},
|
},
|
||||||
"categories": {
|
"categories": {
|
||||||
|
|
Loading…
Reference in a new issue