fix(backend/sqlite): remove faulty var from load()
resolves HTTPASTE-31
This commit is contained in:
parent
107ed91120
commit
cefbcf9318
1 changed files with 1 additions and 2 deletions
|
|
@ -20,8 +20,7 @@ def load(proto: object, connection: Connection, model_class: type):
|
|||
|
||||
if row is not None:
|
||||
|
||||
return model_class(result['sub'], result['key_hash'],
|
||||
result['paste_index'])
|
||||
return model_class(row['sub'], row['key_hash'], row['paste_index'])
|
||||
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue