jvserve 2.0.2__tar.gz → 2.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jvserve might be problematic. Click here for more details.
- {jvserve-2.0.2 → jvserve-2.0.3}/PKG-INFO +1 -1
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve/__init__.py +1 -1
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve/lib/agent_interface.py +3 -7
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve.egg-info/PKG-INFO +1 -1
- {jvserve-2.0.2 → jvserve-2.0.3}/LICENSE +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/README.md +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve/cli.py +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve/lib/__init__.py +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve/lib/agent_pulse.py +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve/lib/jvlogger.py +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve.egg-info/SOURCES.txt +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve.egg-info/dependency_links.txt +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve.egg-info/entry_points.txt +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve.egg-info/requires.txt +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/jvserve.egg-info/top_level.txt +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/setup.cfg +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/setup.py +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/tests/test_jvlogger.py +0 -0
- {jvserve-2.0.2 → jvserve-2.0.3}/tests/test_jvserve.py +0 -0
|
@@ -6,7 +6,7 @@ import os
|
|
|
6
6
|
import string
|
|
7
7
|
import time
|
|
8
8
|
import traceback
|
|
9
|
-
from typing import Any, Dict, Optional
|
|
9
|
+
from typing import Any, Dict, List, Optional
|
|
10
10
|
from urllib.parse import quote, unquote
|
|
11
11
|
|
|
12
12
|
import aiohttp
|
|
@@ -163,7 +163,7 @@ class AgentInterface:
|
|
|
163
163
|
module_root: str = Form(...), # noqa: B008
|
|
164
164
|
walker: str = Form(...), # noqa: B008
|
|
165
165
|
args: Optional[str] = Form(None), # noqa: B008
|
|
166
|
-
attachments:
|
|
166
|
+
attachments: List[UploadFile] = Form(default_factory=list), # noqa: B008
|
|
167
167
|
) -> JSONResponse:
|
|
168
168
|
"""Execute a named walker exposed by an action within context; capable of handling JSON or file data depending on request"""
|
|
169
169
|
|
|
@@ -564,11 +564,7 @@ class AgentInterface:
|
|
|
564
564
|
|
|
565
565
|
# if user context still active, return it
|
|
566
566
|
now = int(time.time())
|
|
567
|
-
if
|
|
568
|
-
AgentInterface.EXPIRATION
|
|
569
|
-
and AgentInterface.EXPIRATION.isdigit()
|
|
570
|
-
and int(AgentInterface.EXPIRATION) > now
|
|
571
|
-
):
|
|
567
|
+
if AgentInterface.EXPIRATION and AgentInterface.EXPIRATION > now:
|
|
572
568
|
return {
|
|
573
569
|
"root_id": AgentInterface.ROOT_ID,
|
|
574
570
|
"token": AgentInterface.TOKEN,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|