diff --git a/admin/main.py b/admin/main.py index 441ff13..7070d10 100644 --- a/admin/main.py +++ b/admin/main.py @@ -318,9 +318,6 @@ def ApiDelete(file): db.collection(os.getenv("PREFIX")).document(file).delete() s3.delete_object(Bucket=os.getenv("AWS_BUCKET"), Key=f"{file_name}/{file}") - s3.delete_object( - Bucket=os.getenv("AWS_BUCKET"), Key=f"{file_name}/{file_name}-512.{file_ext}" - ) s3.delete_object( Bucket=os.getenv("AWS_BUCKET"), Key=f"{file_name}/{file_name}-{SIZES[0][0]}.{file_ext}", diff --git a/generate/build.tsx b/generate/build.tsx index 49fb1c1..0338899 100644 --- a/generate/build.tsx +++ b/generate/build.tsx @@ -116,13 +116,6 @@ if ( items = JSON.parse(fs.readFileSync("data/items.json", "utf-8")); } -// const ordered = Object.keys(items) -// .sort().reverse() -// .reduce((obj, key) => { -// obj[key] = items[key]; -// return obj; -// }, {} as typeof items); - Object.keys(items).forEach((year) => { items[year].sort((a, b) => b.date - a.date); }); @@ -169,7 +162,3 @@ if (ENVIRONMENT == "dev") { } fs.writeFileSync("out/index.html", `${html}`); log.info("Build finished!"); - -// console.log(await db.collection("images").count().get().then((snapshot) => { -// return snapshot.data().count; -// }));