aboutsummaryrefslogtreecommitdiffstats
path: root/backend/decorators.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-04-13 01:20:53 -0700
committerPinapelz <yukais@pinapelz.com>2024-04-13 01:20:53 -0700
commit6d084b98235bf1799e17fc17aad7ab9894621915 (patch)
tree3ef588dbe0b5bfb723e17d94f90e2303455852f8 /backend/decorators.py
parent5066658bf9c6f5a515efeb0c69793734a53e9755 (diff)
change backend API to a submodule
Diffstat (limited to 'backend/decorators.py')
-rw-r--r--backend/decorators.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/backend/decorators.py b/backend/decorators.py
deleted file mode 100644
index bc0b420..0000000
--- a/backend/decorators.py
+++ /dev/null
@@ -1,16 +0,0 @@
-import time
-
-
-def log(message: str):
- def decorator(func):
- def wrapper(*args, **kwargs):
- print("TASK: " + message)
- start = time.time()
- result = func(*args, **kwargs)
- end = time.time()
- print(f"COMPLETE: {message} {round(end - start, 3)} seconds")
- return result
-
- return wrapper
-
- return decorator
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage