Scifabric / pybossa

PYBOSSA is the ultimate crowdsourcing framework (aka microtasking) to analyze or enrich data that can't be processed by machines alone.
http://pybossa.com
GNU Affero General Public License v3.0
745 stars 269 forks source link

Fixed unicode error on cli.py #1983

Closed cerquide closed 4 years ago

cerquide commented 4 years ago

Found this error trying to run python cli.py db_create with Python 3.8.

File "cli.py", line 162 '''SELECT id, created FROM task_run WHERE created LIKE ('\x%')''') ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 54-55: truncated \xXX escape

And I am sending the easy solution. Can you check that it works with other Python versions?

teleyinex commented 4 years ago

Thanks! I'll run the tests and check that everything is ok. If the tests are green, I'll merge!

teleyinex commented 4 years ago

I merged this other issue, which is exactly like yours: #1986