mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-14 02:28:23 +00:00
fix: [doc] simplify ail feeder
This commit is contained in:
parent
54c57ea35b
commit
abc10a1203
1 changed files with 4 additions and 4 deletions
|
@ -201,14 +201,14 @@ pyail = PyAIL(URL, API_KEY, ssl=verifycert)
|
||||||
#. . . imports
|
#. . . imports
|
||||||
#. . . setup code
|
#. . . setup code
|
||||||
|
|
||||||
for content in sys.stdin:
|
for elem in sys.stdin:
|
||||||
elm = json.loads(content)
|
elm = json.loads(elem)
|
||||||
tmp = elm['body']
|
content = elm['body']
|
||||||
meta = {}
|
meta = {}
|
||||||
meta['jabber:to'] = elm['to']
|
meta['jabber:to'] = elm['to']
|
||||||
meta['jabber:from'] = elm['from']
|
meta['jabber:from'] = elm['from']
|
||||||
meta['jabber:ts]' = elm['ts']
|
meta['jabber:ts]' = elm['ts']
|
||||||
pyail.feed_json_item(tmp , meta, feeder_name, feeder_uuid)
|
pyail.feed_json_item(content , meta, feeder_name, feeder_uuid)
|
||||||
```
|
```
|
||||||
|
|
||||||
# AIL SYNC
|
# AIL SYNC
|
||||||
|
|
Loading…
Reference in a new issue