Commit Graph

5 Commits

Author SHA1 Message Date
Fred Z
b18a7062ca Wraps method 'pymysql…execute()', adds 'autocommit' 2018-08-03 18:23:26 +02:00
Fred Z
7d1f4418db Adds 'db_summary()' method
To lighten and improve the __init__
Now it can be re-called after the create-DB script
Exports messages template in 'config.py'
PyMysql seem not to accept 'CREATE TABLE IF NOT EXIST'
2018-08-03 00:41:17 +02:00
Fred Z
192e18d8e0 Refactors DB access 2018-08-02 20:00:30 +02:00
Fred Z
1c17468fb2 Generates dict with prod & fields #4
- Modifies the storage of kept fields : need to keep more fields from a category
        than from a product FIELD_KEPT is turned into a dict like this :
        {'category':[fields, …], 'products':[fields, …]}
- separates online/offline tests
2018-07-31 15:28:56 +02:00
Fred Z
cff82380b8 Exports config in a new file 'config.py' 2018-07-27 22:27:42 +02:00