Giter VIP home page Giter VIP logo

ausstaterankings's Introduction

Australian State/Territory Speedcubing Rankings

This is a site to keep track of Australian state and territory WCA rankings. Contributors are greatly appreciated. Please contact me if you are familiar with Flask and/or the WCA API.

Setup

  1. Clone this repository
  2. Install Flask
pip install Flask
  1. Navigate to project directory and install NPM dependencies
cd .../ausstaterankings
npm install
  1. Create Postgres database and configure .env
touch .env
SECRET_KEY=ERWArfC+T3A32qFYyilbmw==

# OAuth
CLIENT_ID=[Contact to request access]
CLIENT_SECRET=[Contact to request access]

DATABASE_URI=postgresql://[url]
  1. Start Tailwind
npm run tailwind
  1. Configure and run the app
flask --app app run --debug

ausstaterankings's People

Contributors

william-herring avatar

Stargazers

Peter Craig avatar

Watchers

 avatar

ausstaterankings's Issues

Average rankings query results in 500 response

Querying averages where there are null results results in the following error when the template is rendered:

TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

Null averages should be excluded from queries to prevent this.

Scheduling result updates

Currently scheduled result updates do not execute as expected every Wednesday. The updates should be scheduled as cron jobs, but the app must be run from the app.py file directly, which will not work in production.

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.