Compare commits

..

No commits in common. "e2ac8e18f06ae6add6ce97f65cd152dcc0070485" and "2996c4ad97ddcd2c871e9d2a42b52990d1dac98b" have entirely different histories.

3 changed files with 25 additions and 29 deletions

View file

@ -1,30 +1,4 @@
[
{
"ol_id": "OL3621057W",
"title": "Against His-Story, Against Leviathan!",
"first_publish_date": "June 1983",
"subjects": [
"Anarchism",
"Anarcho-Primitivism",
"Civilization",
"Miscellanea",
"Leviathan",
"History",
"Potawatomi Indians"
],
"authors": [
{
"ol_id": "OL616358A",
"name": "Fredy Perlman"
}
],
"languages": [
"eng"
],
"date_added": "2013-05-08",
"date_started": "2024-03-14",
"added_by_id": "9781909798311"
},
{
"publishers": [
"O'Reilly Media"

View file

@ -28011,6 +28011,30 @@
],
"date_added": "2013-05-07"
},
{
"ol_id": "OL3621057W",
"title": "Against His-Story, Against Leviathan!",
"first_publish_date": "June 1983",
"subjects": [
"Anarchism",
"Anarcho-Primitivism",
"Civilization",
"Miscellanea",
"Leviathan",
"History",
"Potawatomi Indians"
],
"authors": [
{
"ol_id": "OL616358A",
"name": "Fredy Perlman"
}
],
"languages": [
"eng"
],
"date_added": "2013-05-08"
},
{
"ol_id": "OL15829104W",
"title": "Against love",

View file

@ -118,8 +118,6 @@ def delete_existing(item_id: str, media_type: str, log: str) -> None:
]
if len(log_items) < (old_len - 1):
raise Exception("More than one deletion made, discarding…")
elif len(log_items) == old_len:
raise Exception("No item deleted, skipping…"s)
with open(f"./data/{media_type}/{log}.json", "w", encoding="utf-8") as log_file:
json.dump(log_items, log_file, indent=4)