Merged in bugfix/HTTPASTE-31/backend/sqlite (pull request #13)
fix(backend/sqlite): remove faulty var from load()
This commit is contained in:
commit
1a4e20ce3e
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