fix: [doc] simplify ail feeder

dev
terrtia 2023-11-09 14:25:29 +01:00
parent 54c57ea35b
commit abc10a1203
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 4 additions and 4 deletions

View File

@ -201,14 +201,14 @@ pyail = PyAIL(URL, API_KEY, ssl=verifycert)
#. . . imports
#. . . setup code
for content in sys.stdin:
elm = json.loads(content)
tmp = elm['body']
for elem in sys.stdin:
elm = json.loads(elem)
content = elm['body']
meta = {}
meta['jabber:to'] = elm['to']
meta['jabber:from'] = elm['from']
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