changed indexing

This commit is contained in:
Daniel 2024-10-01 07:47:31 -05:00
parent 816510f4de
commit 71f946b8b0

View File

@ -4,8 +4,6 @@ import lib
raw_manifest = open("/mnt/user/media/paperless/media/backup/manifest.json")
manifest = lib.json.load(raw_manifest)
inum = 1
existing, inserted, big, duplicates = 0, 0, 0, 0
def insert(r):
@ -28,7 +26,7 @@ def exists(r):
else: return False
def parse():
global inserted, big, inum
global inserted, big
print("Parsing manifest json...")
# for every document in the export
for document in manifest: