aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/tables.py (unfollow)
Commit message (Collapse)AuthorLines
2018-05-14Migration runner and migrations (#69)Gravatar Gareth Coles-0/+89
* 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
2018-05-08Switch from using abort to using werkzeug exceptionGravatar Joseph-2/+2
2018-05-08account for the FLASK_DEBUG env not being there before running testsGravatar Christopher Baklid-1/+4
2018-05-08account for debug mode in unit testingGravatar Christopher Baklid-0/+1
2018-05-08fix tests in travisGravatar Christopher Baklid-4/+4
2018-05-08fix testsGravatar Christopher Baklid-98/+99
2018-05-08Remove broken unit tests until Inver can look at themGravatar Gareth Coles-84/+84
2018-05-08Small code jam page fixesGravatar Gareth Coles-23/+44
2018-05-08Fix testsGravatar Gareth Coles-3/+5
2018-05-08Fix testsGravatar Gareth Coles-2/+3
2018-05-08Add manager to WS classGravatar Gareth Coles-0/+2
2018-05-08LintingGravatar Gareth Coles-1/+1
2018-05-08Move bot API key to a constantGravatar Gareth Coles-3/+5
2018-05-07[Wiki] Fix an editor dumb: `not not`Gravatar Gareth Coles-3/+4
2018-05-07Update the code jams info pageGravatar Gareth Coles-9/+10
2018-05-06[Wiki] Case-insensitive searchingGravatar Gareth Coles-3/+3
2018-05-06[Wiki] Misc improvements, plus a beta search featureGravatar Gareth Coles-15/+212
2018-05-06I linted that, I swearGravatar Gareth Coles-2/+2
2018-05-06[Wiki] Move page functionGravatar Gareth Coles-18/+143
2018-05-05Use Discord embed image for index page buttonGravatar Gareth Coles-2/+2
2018-05-05Update README.mdGravatar Gareth Coles-1/+1
2018-05-04[Wiki] 7.1rem wasn't quite enough for the sidebarGravatar Gareth Coles-1/+1
2018-05-02upgrades alpine and adds docker commands to pipenv (#65)Gravatar Christopher Baklid-1/+5
2018-05-02[Wiki] 7rem wasn't quite enough for the sidebarGravatar Gareth Coles-1/+1
2018-05-02[Wiki] Implement page deletions and improve sidebar constructionGravatar Gareth Coles-36/+146
2018-05-02[All Pages] Fix linksGravatar Gareth Coles-1/+1
2018-05-02[All Pages] Fix the other half of that dumbGravatar Gareth Coles-0/+3
2018-05-02[All Pages] Account for pages without a title when sortingGravatar Gareth Coles-3/+1
2018-05-02Add special pages and an "all pages" special pageGravatar Gareth Coles-10/+88
2018-05-01Fixed those pesky rapper names. (#66)Gravatar biskette-2/+2
2018-05-01[Bug Fix] Fix the Edit & Source links on Wiki revision viewerGravatar Joseph-1/+3
2018-05-01[Wiki] Fix image spacingGravatar Gareth Coles-1/+5
2018-04-30restructure dockerGravatar Christopher Baklid-2/+4
2018-04-30[Wiki] Add Minecraft to the sidebarGravatar Gareth Coles-0/+3
2018-04-30[Wiki] Icons should all be the same widthGravatar Gareth Coles-1/+1
2018-04-30[Wiki] This should completely make headers uniformGravatar Gareth Coles-2/+6
2018-04-30[Wiki] Header icons need a space afterwardsGravatar Gareth Coles-2/+13
2018-04-30[Wiki] Small template fixesGravatar Gareth Coles-3/+2
2018-04-30[Wiki] In-page headers may have iconsGravatar Gareth Coles-2/+2
2018-04-29Fix for wiki.history.show with slashes in URLGravatar Joseph-1/+1
2018-04-29pipenv and dockerfile (#62)Gravatar Christopher Baklid-34/+746
pipenv and dockerfile
2018-04-27[Wiki] Dumb CSS typoGravatar Gareth Coles-1/+1
2018-04-27Minor adjustments to payment icon alignment and margins (#60)Gravatar Leon Sandøy-8/+24
2018-04-27[Wiki] Fix left sidebar width on some devicesGravatar Gareth Coles-2/+6
2018-04-27Added books and courses (#59)Gravatar Leon Sandøy-190/+374
* Added books and courses * Alphabetized all the things, but maintained groupings of free, optional, paid within each section, and still have Tutorials on the top, since it's probably the most relevant category.
2018-04-27Declaring the encoding to be utf-8 is not necessary in Python3 projects, as ↵Gravatar Leon Sandøy-55/+0
this is the default encoding. Encoding declarations are only useful in py3 if you want to declare it to be something _other_ than utf-8. This was, however, a very useful convention in py2. (#56)
2018-04-24Make the nickname policy officialGravatar Gareth Coles-1/+29
2018-04-20[#1eeu1] Hiphopify (#54)Gravatar Leon Sandøy-196/+432
* 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.
2018-04-19Added image URLs for each of these famous rappers. (#55)Gravatar biskette-1297/+5188
2018-04-18Delete wiki_revisions.jsonGravatar Joseph-1/+0