fossasia / susi_server

SUSI.AI server backend - the Artificial Intelligence server for personal assistants https://susi.ai
GNU Lesser General Public License v2.1
2.51k stars 1.08k forks source link

No reflection inside of URLs of console rules possible #1392

Closed Orbiter closed 5 years ago

Orbiter commented 5 years ago

not working:

timestamp
!javascript:$!$
Math.floor(Date.now() / 1000).toString()
eol

request_days
!console:$!$
{
  "url":"https://dashboard.camp.ccc.de/api/datasources/proxy/1/api/v1/query_range?query=day_of_month()%20-%2020&start=`timestamp`&end=`timestamp`&step=900",
  "path":"$.status.data.result[1].values[0][1]"
}
eol

the timestamp inside the url is not replaced

Orbiter commented 5 years ago

fixed in https://github.com/fossasia/susi_server/commit/f2d8f4f02270d99285e827d584620d436a35e098