Commit Graph

116 Commits (694dddc3054d38d531912be7d8be402c234646d0)

Author SHA1 Message Date
Ethan Dalool 278923a000 Add the NotExclusive exception and common.is_xor. 2017-12-13 14:35:36 -08:00
Ethan Dalool 8b98224465 Add the DatabaseOutOfDate exception instead of using ValueError. 2017-12-13 14:22:23 -08:00
Ethan Dalool b7fcad7cc1 Start exception hierarchy; rename DBNotFound to DatabaseNotFound. 2017-12-13 14:07:52 -08:00
Ethan Dalool f4d3679063 Remove unnecessary amount of pathclass.Path instantiation. 2017-12-13 13:29:13 -08:00
Ethan Dalool c87d38a36b Add function `generator_printer` so it can be used outside.
This way, people who use _as_a_generator can get the same print
statements as the normal version without rewriting it themselves.
2017-12-13 12:48:26 -08:00
Ethan Dalool f7e96975bf Add a collapse [-] button to comment elements. 2017-12-05 15:12:54 -08:00
Ethan Dalool cae90acfc6 Move responsibility of log formatting to frontend application. 2017-12-05 15:09:12 -08:00
Ethan Dalool 6b4b6040be Fix calling len() on singular Submission / Comment instances. 2017-12-05 08:31:14 -08:00
Ethan Dalool d1e68a0816 Oops, add the author query for username timesearches. 2017-12-03 11:39:32 -08:00
Ethan Dalool d54b7937b3 Move HTML templates to global constants; Don't inline CSS. 2017-11-23 20:14:59 -08:00
Ethan Dalool 60a153fba7 Improve division of labor with _as_generator, add some debugs.
Previously, `livestream` was doing validation and building the
database and then passing it to `_as_a_generator`.
Since that's the only place those things are used, just move them
into there leaving `livestream` looking more simple.
2017-11-21 21:00:02 -08:00
Ethan Dalool d59c3d5310 Add some debugs to the `insert` method. 2017-11-21 20:53:59 -08:00
Ethan Dalool 89bcc1717e Add a logger. 2017-11-21 19:59:26 -08:00
Ethan Dalool 7ef5a8ceee Add table `config` for meta settings. 2017-11-15 20:40:52 -08:00
Ethan Dalool 2b71ec3c76 Start tracking database user_version for potential upgrades. 2017-11-15 20:22:29 -08:00
Ethan Dalool 708c774e52 Initial migratory commit from voussoir/reddit. 2017-11-13 19:13:19 -08:00