Return search results directly from the server

This commit is contained in:
2022-07-04 04:32:27 +00:00
parent 6aa0f78536
commit 7bdbbf10b2
5 changed files with 16 additions and 17 deletions
+1 -2
View File
@@ -59,8 +59,7 @@ if __name__ == '__main__':
story = database.get_story(sid)
print('Indexing {}/{} id: {} title: {}'.format(count, num_stories, sid[0], story.title))
story_obj = json.loads(story.meta_json)
to_add = dict(title=story_obj['title'], id=story_obj['id'], date=story_obj['date'])
stories.append(to_add)
stories.append(story_obj)
count += 1
res = put_stories(stories)