Remove known missing from list

merge/2021-11-19
kaetemi 4 years ago
parent 93dc106d95
commit 03b9e1f44f
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -16,18 +16,25 @@ def listPathExt(path, ext):
listPathExt(sitemPath, ".sitem") listPathExt(sitemPath, ".sitem")
knownMissing = {}
with open("missing_sheets.txt", "r") as r:
for l in r:
knownMissing[l.strip()] = True
with open("sitem_list.txt", "w") as w: with open("sitem_list.txt", "w") as w:
with open("sitem_missing.txt", "w") as wm: with open("sitem_missing.txt", "w") as wm:
with open("sitem_list_r2.txt", "r") as r: with open("sitem_list_r2.txt", "r") as r:
for l in r: for l in r:
w.write(l) if not l.strip() in knownMissing:
if not l.strip() in fileMap:
wm.write(l)
with open("sitem_list_wk.txt", "r") as r:
for l in r:
if len(l.strip()) > 0 and not l.startswith(";"):
w.write(l) w.write(l)
if not l.strip() in fileMap: if not l.strip() in fileMap:
wm.write(l) wm.write(l)
with open("sitem_list_wk.txt", "r") as r:
for l in r:
if len(l.strip()) > 0 and not l.startswith(";"):
if not l.strip() in knownMissing:
w.write(l)
if not l.strip() in fileMap:
wm.write(l)
wm.flush() wm.flush()
w.flush() w.flush()

@ -2,9 +2,6 @@ iccm1bm.sitem
iccm1pd.sitem iccm1pd.sitem
iccm1sa.sitem iccm1sa.sitem
iccm1ss.sitem iccm1ss.sitem
icf.sitem
icf_2.sitem
icf_3.sitem
icfacb_3.sitem icfacb_3.sitem
icfacp.sitem icfacp.sitem
icfacp_2.sitem icfacp_2.sitem
@ -95,9 +92,6 @@ icfsb_3.sitem
icfss.sitem icfss.sitem
icfss_2.sitem icfss_2.sitem
icfss_3.sitem icfss_3.sitem
icm.sitem
icm_2.sitem
icm_3.sitem
icmacb_3.sitem icmacb_3.sitem
icmacp.sitem icmacp.sitem
icmacp_2.sitem icmacp_2.sitem
@ -189,9 +183,6 @@ icmss.sitem
icmss_2.sitem icmss_2.sitem
icmss_3.sitem icmss_3.sitem
icravr.sitem icravr.sitem
ict.sitem
ict_2.sitem
ict_3.sitem
ictacb_3.sitem ictacb_3.sitem
ictacp.sitem ictacp.sitem
ictacp_2.sitem ictacp_2.sitem
@ -282,9 +273,6 @@ ictsb_3.sitem
ictss.sitem ictss.sitem
ictss_2.sitem ictss_2.sitem
ictss_3.sitem ictss_3.sitem
icz.sitem
icz_2.sitem
icz_3.sitem
iczacp.sitem iczacp.sitem
iczacp_2.sitem iczacp_2.sitem
iczacp_3.sitem iczacp_3.sitem

@ -2,9 +2,6 @@ iccm1bm.sitem
iccm1pd.sitem iccm1pd.sitem
iccm1sa.sitem iccm1sa.sitem
iccm1ss.sitem iccm1ss.sitem
icf.sitem
icf_2.sitem
icf_3.sitem
icfacb_3.sitem icfacb_3.sitem
icfacs_3.sitem icfacs_3.sitem
icfacv_3.sitem icfacv_3.sitem
@ -44,9 +41,6 @@ icfsb_3.sitem
icfss.sitem icfss.sitem
icfss_2.sitem icfss_2.sitem
icfss_3.sitem icfss_3.sitem
icm.sitem
icm_2.sitem
icm_3.sitem
icmacb_3.sitem icmacb_3.sitem
icmacs_3.sitem icmacs_3.sitem
icmacv_3.sitem icmacv_3.sitem
@ -86,9 +80,6 @@ icmsb_3.sitem
icmss.sitem icmss.sitem
icmss_2.sitem icmss_2.sitem
icmss_3.sitem icmss_3.sitem
ict.sitem
ict_2.sitem
ict_3.sitem
ictacb_3.sitem ictacb_3.sitem
ictacs_3.sitem ictacs_3.sitem
ictacv_3.sitem ictacv_3.sitem
@ -128,9 +119,6 @@ ictsb_3.sitem
ictss.sitem ictss.sitem
ictss_2.sitem ictss_2.sitem
ictss_3.sitem ictss_3.sitem
icz.sitem
icz_2.sitem
icz_3.sitem
iczm1bm.sitem iczm1bm.sitem
iczm1bm_2.sitem iczm1bm_2.sitem
iczm1bm_3.sitem iczm1bm_3.sitem

Loading…
Cancel
Save