aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/database (follow)
Commit message (Collapse)AuthorAgeLines
* Migration runner and migrations (#69)Gravatar Gareth Coles2018-05-14-5198/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Migration runner and migrations * Remove demo wiki data * [Staff] Table management pages * Fix weird travis build omission * Address review and comments by @Volcyy * [Tables] Fix pagination * Move table definitions to new file with nameduple * Linting * Address lemon's review comments * Address @Volcyy's review * Address lemon's review * Update search placeholder * Search by key now available
* Fixed those pesky rapper names. (#66)Gravatar biskette2018-05-01-2/+2
|
* [#1eeu1] Hiphopify (#54)Gravatar Leon Sandøy2018-04-20-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changed the dev-mode logic to be the same as prod for creating new tables if they don't exist. Also added a new feature where a table can be initialized with data if you create a JSON file in the pysite/database/table_init/ folder and fill it with a list of dicts where each dict represents a row in your table. Included a hiphoppers json so that I can actually test if it works in production. It will only init the table if the table is empty. * Not sure if this will solve it, but I think so. * Renamed the tables and primary keys, and alphabetized the dict. Now complies with the gdudes holy wishes. * Almost done with the initial build for this. Implemented GET and DELETE, in order to finish POST I need to expand the database.py interface class. * Alphabetized database convenience wrappers. * Fixed a few typehints and added the sample convenience wrapper to the database class. * Finishing up the POST method and adding a duration parser to the utils folder so we can handle strings like 2w3d and turn them into a timestamp. * Fixed API blueprint loading, which was broken by the setup method in the DBMixIn. I'd forgotten to remove the check for table_name attribute. Also adde some logging and got the DELETE route working. * Added timezone-sensitivity to the duration parser so it will work with rethink. renamed the json and fixed some bugs in the hiphopify API. * Added a utility to test if rdb timestamps are expired, and only returning data from the GET calls if it isn't expired. * changed some log wording * Setting up Lil Joseph as default image. Adding some rappers to the list. * Adding a bunch of logging * These tests no longer apply. New tests must be written in the long run, removing them for now. * Addressing review comments left by Volcyy * Fixed misleading comment.
* Added image URLs for each of these famous rappers. (#55)Gravatar biskette2018-04-19-1297/+5188
|
* Delete wiki_revisions.jsonGravatar Joseph2018-04-18-1/+0
|
* Merge branch 'master' of github.com:discord-python/siteGravatar Leon Sandøy2018-04-18-0/+1
|\
| * Fix sidebar routesGravatar Joseph2018-04-18-0/+1
| |
* | Adding Pinkie Pie to the hiphoppers listGravatar Leon Sandøy2018-04-18-0/+1
|/
* JSON file had the wrong name. I should be incarcerated.Gravatar Leon Sandøy2018-04-16-0/+0
|
* Initial data for tables and refactoring the dev-mode database handling to be ↵Gravatar Leon Sandøy2018-04-15-0/+1298
similar to prod-mode. (#53) * Changed the dev-mode logic to be the same as prod for creating new tables if they don't exist. Also added a new feature where a table can be initialized with data if you create a JSON file in the pysite/database/table_init/ folder and fill it with a list of dicts where each dict represents a row in your table. Included a hiphoppers json so that I can actually test if it works in production. It will only init the table if the table is empty. * Not sure if this will solve it, but I think so. * Renamed the tables and primary keys, and alphabetized the dict. Now complies with the gdudes holy wishes.