1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

A few fixes

This commit is contained in:
krateng 2022-03-06 02:58:02 +01:00
parent 48d88b208f
commit e398dd3ac1
5 changed files with 8 additions and 5 deletions

View File

@ -58,7 +58,7 @@ class APIHandler:
def wrapper(self,path:Multi=[],**keys):
log("{self.__apiname__} API request: " + str(path))# + " | Keys: " + str({k:keys.get(k) for k in keys}))
log(f"{self.__apiname__} API request: {path}")# + " | Keys: " + str({k:keys.get(k) for k in keys}))
try:
response.status,result = self.handle(path,keys)

View File

@ -10,7 +10,7 @@ from .. import utilities
from ._apikeys import api_key_correct, checkAPIkey
from . import apikeystore
from bottle import response, static_file
from bottle import response, static_file, request
# nimrodel API
from nimrodel import EAPI as API

View File

@ -8,7 +8,10 @@ def profile(func):
profiler.enable()
result = func(*args,**kwargs)
profiler.disable()
pstats.Stats(profiler).dump_stats(f"dev/benchmarking/{func}.stats")
try:
pstats.Stats(profiler).dump_stats(f"dev/benchmarking/{func.__name__}.stats")
except:
pass
return result
return newfunc

View File

@ -21,7 +21,7 @@ classifiers = [
dependencies = [
"bottle>=0.12.16",
"waitress>=1.3",
"doreah>=1.7.2, <2",
"doreah>=1.7.4, <2",
"nimrodel>=0.7.0",
"setproctitle>=1.1.10",
#"pyvips>=2.1.16",

View File

@ -1,6 +1,6 @@
bottle>=0.12.16
waitress>=1.3
doreah>=1.7.2
doreah>=1.7.4
nimrodel>=0.7.0
setproctitle>=1.1.10
jinja2>=2.11