Git Product home page Git Product logo

Comments (5)

demon-ru avatar demon-ru commented on August 19, 2024

Пока добавил проверку на 0 и... не придумал какой процент в этом случае ставить :)
Поставил 0%

from tinkproject.

demon-ru avatar demon-ru commented on August 19, 2024

И далее... вероятно, по этой же причине (по акции нет ни одной строки истории. Мне её "выделили", но я не покупал, не продавал).

Traceback (most recent call last):
File "./main.py", line 248, in
my_positions = creating_positions_objects()
File "./main.py", line 137, in creating_positions_objects
ave_buy_price_rub = calculate_ave_buy_price_rub()
File "./main.py", line 133, in calculate_ave_buy_price_rub
ave_buy_price_rub = sum(item_list) / len(item_list)
ZeroDivisionError: division by zero

from tinkproject.

EgoPingvina avatar EgoPingvina commented on August 19, 2024

У меня тоже возник ZeroDivisionError: division by zero и экселька не появилась. Только не понимаю почему, упало на фонде FXIT по которому не может нулей нигде быть.

from tinkproject.

Lowton avatar Lowton commented on August 19, 2024

К тому же в 130 строке main.py. Добавил бы проверку на 0.
ave_buy_price_rub = 0 if len(item_list) == 0 else sum(item_list) / len(item_list)

from tinkproject.

samizdam avatar samizdam commented on August 19, 2024

К тому же в 130 строке main.py. Добавил бы проверку на 0.
ave_buy_price_rub = 0 if len(item_list) == 0 else sum(item_list) / len(item_list)

934e84a

from tinkproject.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.