Commit Graph

77 Commits (5345e8f4fcfa225d16832c52db0b4d3b02f0a4de)

Author SHA1 Message Date
Ethan Dalool 9971d853fb Make use of voussoirkit.sqlhelpers for the insert filler. 2018-04-10 16:56:50 -07:00
Ethan Dalool b3a42daceb Fix typo user.display_name -> user.name. 2018-04-10 16:44:34 -07:00
Ethan Dalool e6b7ed739b Integrate with Pushshift.io to restore timesearch.
And improve commentaugment.
2018-04-09 19:53:53 -07:00
Ethan Dalool 0267f221f0 Move t3_prefix to a helper function. 2018-04-07 20:05:31 -07:00
Ethan Dalool c7dd46d6ec Add tables submission_edits, comment_edits. Somewhat experimental.
But as search API reaches EOL anyway it should be fine.
2018-03-22 17:08:57 -07:00
Ethan Dalool 5eccfb18af Allow a single Livestream instance to work on multiple subs.
-r subreddit1+subreddit2 -u user1+user2 will manage multiple
independent livestream generators and print the results for all.
2018-03-22 17:06:07 -07:00
Ethan Dalool fe7d5534e8 Oops, allow specific_submission to suppress -r -u requirement. 2018-03-22 16:26:27 -07:00
Ethan Dalool 394aa6ec16 Print the migrate query before taking a count. 2018-03-22 16:25:49 -07:00
Ethan Dalool 5d1c2f885d When logging in, reassign the common.r instance. 2018-03-15 19:05:10 -07:00
Ethan Dalool 0ec6002cba Add critical notice. 2018-01-29 19:00:43 -08:00
Ethan Dalool c185ddaf77 Support usage of filepaths as -r and -u arguments.
Add `tsdb.name_from_path` so that if the user provides a filepath
as the -r or -u option, we can load their database from that
path and also figure out the subreddit / username to fetch the
subreddit / user object properly, without having to add another
cmd arg for specifying a nonstandard path. New constructor argument
fix_name to perform this automatically and return a tuple of
(database, fixed name).
2017-12-13 14:42:56 -08:00
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