Skip to content

Commit b9c51c0

Browse files
committed
feat: adding static pacckage to dist
1 parent 27fe05c commit b9c51c0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎python_framework/api/src/annotation/SchedulerAnnotation.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ def SchedulerMethod(*methodArgs, requestClass=None, **methodKwargs) :
2727
methodKwargs['id'] = shedulerId
2828
methodKwargs['max_instances'] = instancesUpTo
2929
methodKwargs['day_of_week'] = weekDays
30+
shedulerArgs = [*methodArgs]
31+
shedulerKwargs = {**methodKwargs}
3032
def innerMethodWrapper(resourceInstanceMethod, *innerMethodArgs, **innerMethodKwargs) :
3133
log.debug(SchedulerMethod,f'''wrapping {resourceInstanceMethod.__name__}''')
3234
apiInstance = resourceInstanceMethod.__self__.globals.api
33-
@apiInstance.scheduler.task(*methodArgs, **methodKwargs)
35+
@apiInstance.scheduler.task(*shedulerArgs, **shedulerKwargs)
3436
def innerResourceInstanceMethod(*args, **kwargs) :
3537
args = FlaskManager.getArgumentInFrontOfArgs(args, ReflectionHelper.getAttributeOrMethod(apiInstance.resource.scheduler, methodClassName[:-len('Scheduler')].lower()))
3638
resourceInstance = args[0]

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
sudo apt install libpq-dev python3-dev
66
pip3.9 install --no-cache-dir python-framework --force --upgrade''')
77

8-
VERSION = '0.1.10-09'
8+
VERSION = '0.1.10-10'
99
NAME = 'python_framework'
1010
URL = f'https://github.com/SamuelJansen/{NAME}/'
1111

0 commit comments

Comments
 (0)