neuronum 5.1.0__tar.gz → 5.2.0__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 neuronum might be problematic. Click here for more details.
- {neuronum-5.1.0/neuronum.egg-info → neuronum-5.2.0}/PKG-INFO +1 -1
- {neuronum-5.1.0 → neuronum-5.2.0}/cli/main.py +2 -4
- {neuronum-5.1.0 → neuronum-5.2.0}/neuronum/neuronum.py +9 -6
- {neuronum-5.1.0 → neuronum-5.2.0/neuronum.egg-info}/PKG-INFO +1 -1
- {neuronum-5.1.0 → neuronum-5.2.0}/setup.py +1 -1
- {neuronum-5.1.0 → neuronum-5.2.0}/LICENSE +0 -0
- {neuronum-5.1.0 → neuronum-5.2.0}/README.md +0 -0
- {neuronum-5.1.0 → neuronum-5.2.0}/cli/__init__.py +0 -0
- {neuronum-5.1.0 → neuronum-5.2.0}/neuronum/__init__.py +0 -0
- {neuronum-5.1.0 → neuronum-5.2.0}/neuronum.egg-info/SOURCES.txt +0 -0
- {neuronum-5.1.0 → neuronum-5.2.0}/neuronum.egg-info/dependency_links.txt +0 -0
- {neuronum-5.1.0 → neuronum-5.2.0}/neuronum.egg-info/entry_points.txt +0 -0
- {neuronum-5.1.0 → neuronum-5.2.0}/neuronum.egg-info/requires.txt +0 -0
- {neuronum-5.1.0 → neuronum-5.2.0}/neuronum.egg-info/top_level.txt +0 -0
- {neuronum-5.1.0 → neuronum-5.2.0}/setup.cfg +0 -0
|
@@ -525,23 +525,21 @@ async def main():
|
|
|
525
525
|
STX = "id::stx"
|
|
526
526
|
async for operation in cell.sync(STX):
|
|
527
527
|
txID = operation.get("txID")
|
|
528
|
+
client = operation.get("operator")
|
|
528
529
|
|
|
529
|
-
if txID == "id::tx":
|
|
530
|
-
client = operation.get("operator")
|
|
530
|
+
if txID == "id::tx":
|
|
531
531
|
data = {{
|
|
532
532
|
"response": "TX activated!"
|
|
533
533
|
}}
|
|
534
534
|
await cell.tx_response(txID, client, data)
|
|
535
535
|
|
|
536
536
|
if txID == "id::tx":
|
|
537
|
-
client = operation.get("operator")
|
|
538
537
|
data = {{
|
|
539
538
|
"response": "TX activated!"
|
|
540
539
|
}}
|
|
541
540
|
await cell.tx_response(txID, client, data)
|
|
542
541
|
|
|
543
542
|
if txID == "id::tx":
|
|
544
|
-
client = operation.get("operator")
|
|
545
543
|
data = {{
|
|
546
544
|
"response": "TX activated!"
|
|
547
545
|
}}
|
|
@@ -174,13 +174,16 @@ class Cell:
|
|
|
174
174
|
async with session.post(url, json=TX) as response:
|
|
175
175
|
response.raise_for_status()
|
|
176
176
|
data = await response.json()
|
|
177
|
-
if data
|
|
177
|
+
if data.get("success") == "activated":
|
|
178
178
|
async for operation in self.sync():
|
|
179
|
-
label
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
if operation.get("label") == "tx_response" and operation.get("txID") == txID:
|
|
180
|
+
data = operation.get("data", {})
|
|
181
|
+
if "json" in data:
|
|
182
|
+
return data
|
|
183
|
+
elif "html" in data:
|
|
184
|
+
return "Info: HTML response available. Please activate TX in browser."
|
|
185
|
+
else:
|
|
186
|
+
return "Info: Response received but contains no usable content."
|
|
184
187
|
else:
|
|
185
188
|
print(data["success"], data["message"])
|
|
186
189
|
|
|
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
|