Stop using python keyword id for id

This commit is contained in:
2019-10-15 20:36:20 +00:00
parent 0f5b2a5ff9
commit 9c4766a928
2 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -36,9 +36,9 @@ def update(story):
)
writer.commit()
def get_story(id):
def get_story(sid):
with ix.searcher() as searcher:
result = searcher.document(id=id)
result = searcher.document(id=sid)
return result['story'] if result else None
def search(search):