Giter Site home page Giter Site logo

aanmeldr's People

Contributors

tomkooij avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

aanmeldr's Issues

Gebruik HTTPS

Logins worden nu in cleartext gepost. Gebruik HTTPS. Wordt in principe ondersteund door pythonanywhere en Flask met pyOpenSSL

sla unix timestamp op bij inschrijving

Als een workshop (te) vol zit dan is het onduidelijk (moeilijk te achterhalen) wie als eerste en wie als laatste heeft ingeschreven.

Oplossing: Sla unixtimestamp op bij inschrijving (evt in de user tabel als "laatste inschrijving")

Fix database errors

SQL transaction level is REPEATABLE READ

Dit betekent dat een SELECT altijd hetzelfde oplevert, ondanks dat er ondertussen iets is gewijzigd. http://dev.mysql.com/doc/refman/5.7/en/innodb-transaction-isolation-levels.html#isolevel_repeatable-read

Als er tijdens het inschrijven ondertussen minder plaatsen in een workshop zijn, dan zie je dat niet in een SELECT, die geeft nog de oude waarde.

Oplossing zou kunnen zijn: Lees aantal plaatsen na db.commit() tijdens het inschrijven en kijk of het niet meer klopt. Als het niet meer klopt: Schrijf uit en geef error.

mysql> SELECT * FROM information_schema.session_variables
    -> WHERE variable_name = 'tx_isolation';
+---------------+-----------------+
| VARIABLE_NAME | VARIABLE_VALUE  |
+---------------+-----------------+
| TX_ISOLATION  | REPEATABLE-READ |
+---------------+-----------------+
1 row in set (0.00 sec)
mysql> SELECT * FROM information_schema.global_variables
    -> WHERE variable_name = 'tx_isolation';
+---------------+-----------------+
| VARIABLE_NAME | VARIABLE_VALUE  |
+---------------+-----------------+
| TX_ISOLATION  | REPEATABLE-READ |
+---------------+-----------------+
1 row in set (0.00 sec)

Aanmeldr offline

ik krijg "De aanmeldwebsite is op dit moment niet open." op mijn scherm als ik probeer in te loggen.

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.