mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 05:39:12 +00:00
Use the same function for computing entries for IDs regardless of whether it has prev entries
This commit is contained in:
@@ -84,12 +84,9 @@ class GithubToJsonl(TextToJsonl):
|
|||||||
def update_entries_with_ids(self, current_entries, previous_entries):
|
def update_entries_with_ids(self, current_entries, previous_entries):
|
||||||
# Identify, mark and merge any new entries with previous entries
|
# Identify, mark and merge any new entries with previous entries
|
||||||
with timer("Identify new or updated entries", logger):
|
with timer("Identify new or updated entries", logger):
|
||||||
if not previous_entries:
|
entries_with_ids = TextToJsonl.mark_entries_for_update(
|
||||||
entries_with_ids = list(enumerate(current_entries))
|
current_entries, previous_entries, key="compiled", logger=logger
|
||||||
else:
|
)
|
||||||
entries_with_ids = TextToJsonl.mark_entries_for_update(
|
|
||||||
current_entries, previous_entries, key="compiled", logger=logger
|
|
||||||
)
|
|
||||||
|
|
||||||
with timer("Write github entries to JSONL file", logger):
|
with timer("Write github entries to JSONL file", logger):
|
||||||
# Process Each Entry from All Notes Files
|
# Process Each Entry from All Notes Files
|
||||||
|
|||||||
Reference in New Issue
Block a user