Giter Site home page Giter Site logo

tradunio's People

Contributors

dependabot[bot] avatar icc-corbin avatar jotacor avatar

Stargazers

 avatar

Watchers

 avatar  avatar

tradunio's Issues

error on updating transactions

Spanish:

Hola, Ayer instalé tu app en mi raspberry pi para mantener controlada mi comunidad.
y estoy recibiendo un error al inicializar la base de datos.

por si te puede ayudar, tengo el mercado en idioma turco para que no puedan ver el dinero mis usuarios en comuniazo

English:

Hello, Yesterday I installed your app in my raspberry to controlled keep my community.
and I am getting an error when initializing the database

----------------------------TERMINAL ERROR---------------------------------------

`
pi@raspberrypi:~/tradunio-master $ sudo python tradunio.py --init
/usr/local/lib/python2.7/dist-packages/bs4/init.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 53 of the file tradunio.py. To get rid of this warning, change code that looks like this:

BeautifulSoup([your markup])

to this:

BeautifulSoup([your markup], "html5lib")

markup_type=markup_type))

[*] Initializing the database.
Database contains data, do you want to remove it and load data again? (y/n) y
DELETE FROM tradunio.clubs WHERE 1; done.
DELETE FROM tradunio.owners WHERE 1; done.
DELETE FROM tradunio.players WHERE 1; done.
DELETE FROM tradunio.points WHERE 1; done.
DELETE FROM tradunio.prices WHERE 1; done.
DELETE FROM tradunio.transactions WHERE 1; done.
DELETE FROM tradunio.user_data WHERE 1; done.
DELETE FROM tradunio.users WHERE 1; done.
/usr/local/lib/python2.7/dist-packages/bs4/init.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 847 of the file tradunio.py. To get rid of this warning, change code that looks like this:

BeautifulSoup([your markup])

to this:

BeautifulSoup([your markup], "html5lib")

markup_type=markup_type))
Updating users data => done.
Updating transactions =>
Traceback (most recent call last):
File "tradunio.py", line 847, in
main()
File "tradunio.py", line 97, in main
set_transactions()
File "tradunio.py", line 477, in set_transactions
until_date = db.simple_query('SELECT MAX(date) FROM transactions')[0][0] - timedelta(days=10)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'

`

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.