Skip to content
This repository was archived by the owner on Nov 2, 2025. It is now read-only.

Commit 99f787c

Browse files
committed
well that was easy
1 parent 81ef408 commit 99f787c

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
bleach==6.1.0
22
disnake==2.9.0
33
Faker==20.1.0
4-
Flask==3.0.0
4+
Flask==3.0.1
55
Flask_Compress==1.14
66
Flask_Cors==4.0.0
7-
Pillow==10.1.0
7+
Pillow==10.2.0
88
pillow_avif_plugin==1.4.1
99
regex==2023.10.3
1010
Requests==2.31.0

routes/projects.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ def get_project_by_id(id: int) -> dict[str, Any] | tuple[str, int]:
218218
if proj is None:
219219
return "Not found", 404
220220

221-
if proj[8] in ["disabled", "draft", "unpublished", "review_queue", "publish_queue"]:
221+
if proj[8] in ["disabled", "draft", "unpublished", "review_queue", "publish_queue", "deleted", "ghost"]:
222222
if not this_user:
223223
return "Not found", 404
224224
if (
225225
this_user == 31
226-
or proj[3] != this_user.id
227-
and this_user.role not in ["admin", "moderator"]
226+
or (proj[3] != this_user.id
227+
and this_user.role not in ["admin", "moderator"])
228228
):
229229
return "Not found", 404
230230

@@ -262,7 +262,7 @@ def get_project_by_slug(slug: str) -> dict[str, Any] | tuple[str, int]:
262262
if proj is None:
263263
return "Not found", 404
264264

265-
if proj[8] in ["disabled", "draft", "unpublished", "review_queue", "publish_queue"]:
265+
if proj[8] in ["disabled", "draft", "unpublished", "review_queue", "publish_queue", "deleted", "ghost"]:
266266
if not this_user or this_user == 31:
267267
return "Not found", 404
268268
if proj[2] != this_user.id and this_user.role not in ["admin", "moderator"]:

utilities/files.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
def upload_zipfile(
2626
unsafe_file: FileStorage, file_name: str, uploader: str, squash: bool = False
2727
):
28-
# decoded = base64.b64decode(file.split(",")[1].encode("unicode_escape"))
2928
file = secure_filename(unsafe_file.filename).split(".")[0]
3029
zip_path = Path(config.DATA + f"{file}-Temporary.zip")
3130
folder_path = Path(config.DATA + f"{file}-Temporary")

utilities/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import secrets
55
import time
66
from typing import Any
7-
import re
87

98
from sqlalchemy import Connection, CursorResult, create_engine, text
109

0 commit comments

Comments
 (0)