Git Product home page Git Product logo

olexatourko / open-tech-pay Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 2.39 MB

An application for sharing local tech industry compensation. It is configured for London, Ontario, but can easily be modified for any region. Built with Flask and SQLAlchemy.

Home Page: https://londontechpay.ca/

Python 53.97% HTML 21.85% CSS 5.65% JavaScript 15.46% Dockerfile 2.45% Shell 0.26% Mako 0.35%
salary compensation career london-ontario flask python survey

open-tech-pay's People

Contributors

olexatourko avatar spiderpan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

oscar-cam

open-tech-pay's Issues

Randomize initial data display order

I would suggest randomizing the initial display of data on the page given the current small result set. Displaying in submission order makes it easy for co-workers / friends entering data close together to fairly easily pick out what data belongs to whom.

ValueError: Unknown format code 'f' for object of type 'str'

 * Serving Flask app "/home/toto/progra/python/open-tech-pay/open-tech-pay/open-tech-pay/src/application.py"
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
[2018-05-07 16:49:54,240] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/open-tech-pay/src/application.py", line 39, in index
    return render_template('app.html', preview_submissions=preview_submissions, aggregate_data=aggregate_data)
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/local/lib/python2.7/site-packages/flask/templating.py", line 135, in render_template
    context, ctx.app)
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/local/lib/python2.7/site-packages/flask/templating.py", line 117, in _render
    rv = template.render(context)
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/open-tech-pay/src/templates/app.html", line 2, in top-level template code
    {% extends "base.html" %}
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/open-tech-pay/src/templates/base.html", line 59, in top-level template code
    {% block content %}{% endblock %}
  File "/home/toto/progra/python/open-tech-pay/open-tech-pay/open-tech-pay/src/templates/app.html", line 24, in block "content"
    <strong>{{ "${:,.0f}".format(aggregate_data['average_salary']) }} (CAD)</strong> per year and has
ValueError: Unknown format code 'f' for object of type 'str'
127.0.0.1 - - [07/May/2018 16:49:54] "GET / HTTP/1.1" 500 -

Casting {:,.0f} to {} seems to solve the issue.

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.