Commit graph

15 commits

Author SHA1 Message Date
Ethan Dalool
b3db322a78 Rename timesearch directory -> timesearch_modules.
This marks the first in a long series of rename commits.
Hold on to your databases!
2020-01-27 18:32:05 -08:00
Ethan Dalool
f2f1db6bc9 Move the DBEntry class to tsdb. 2020-01-05 20:35:15 -08:00
Ethan Dalool
07ca340c80 Add TSDB.for_submission to remove some duplicate effort. 2018-10-28 22:56:05 -07:00
Ethan Dalool
9971d853fb Make use of voussoirkit.sqlhelpers for the insert filler. 2018-04-10 16:56:50 -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
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
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
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
6b4b6040be Fix calling len() on singular Submission / Comment instances. 2017-12-05 08:31:14 -08:00
Ethan Dalool
d59c3d5310 Add some debugs to the insert method. 2017-11-21 20:53:59 -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