Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/count: Медиана трат #33

Closed
qertis opened this issue Feb 12, 2018 · 3 comments
Closed

/count: Медиана трат #33

qertis opened this issue Feb 12, 2018 · 3 comments

Comments

@qertis
Copy link
Member

qertis commented Feb 12, 2018

В запрос count добавить медиану трат за день

@qertis
Copy link
Member Author

qertis commented Jul 5, 2018

в calc.service появился метод getMedian. Его используй для высчитывания медианы

@qertis
Copy link
Member Author

qertis commented Sep 28, 2018

в рамках этой задачи предстоит переделать тип выдачи в count.event.js
то есть,

entries [ { date: 2018-08-26T07:18:51.940Z, entry: '100 рублей' },
  { date: 2018-08-26T07:20:04.523Z, entry: '250 рублей' },
  { date: 2018-08-27T07:22:48.290Z, entry: '30 рублей' }
...]

должны превратиться в объект

[
{
  "2018-08-26": {
     RUB: 350
  },
  "2018-08-27": {
    RUB: 30
  }
}
]

затем при выводе

Всего потрачено:
...
RUB 380
...
МЕДИАНА RUB: 190

@qertis qertis changed the title Медиана трат /count: Медиана трат Jul 21, 2019
@qertis
Copy link
Member Author

qertis commented Aug 3, 2019

перененос https://github.com/gotois/ProstoDiary_bot/issues/24

@qertis qertis closed this as completed Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant