Commit Graph

132 Commits (5f438b5ef3085aa59cec4e9795a6758c38742222)

Author SHA1 Message Date
Ethan Dalool 45f6e36fad Add some whitespace between these parts of the help summary. 2020-02-08 21:10:48 -08:00
Ethan Dalool d64571944f main should return args.func(args) value. 2020-02-08 17:23:27 -08:00
Ethan Dalool d027cce562 main should return args.func(args) value. 2020-02-08 16:20:19 -08:00
Ethan Dalool 263232e0a0 I keep forgetting I have a version number. 2020-02-08 15:51:59 -08:00
Ethan Dalool dd38e0c8da Print a helpful message when bot.py or bot4.py isn't found. 2020-02-08 15:51:45 -08:00
Ethan Dalool 5345e8f4fc Use betterhelp to manage docstrings, aliases, and helptexts. 2020-01-30 23:25:24 -08:00
Ethan Dalool a151edd549 Use new svg logo on readme. 2020-01-28 08:31:44 -08:00
Ethan Dalool bc2addd7be Refer to get_comments instead of commentaugment. 2020-01-27 20:16:51 -08:00
Ethan Dalool 31296000f9 Alphabetize & organize helptexts with new names. 2020-01-27 20:13:01 -08:00
Ethan Dalool 02b2dc166e Fix docstring incorrectly referring to constants. 2020-01-27 20:09:02 -08:00
Ethan Dalool 24f155a40d Update OutOfDate message to show actual argument. 2020-01-27 20:00:08 -08:00
Ethan Dalool d12e66f19c DB v2. Rename redmash folder to index. 2020-01-27 19:53:27 -08:00
Ethan Dalool 0ef423d780 Create _first_time_setup, _load_pragmas, and _check_version. 2020-01-27 19:51:23 -08:00
Ethan Dalool d982d64071 Update readme. 2020-01-27 19:23:50 -08:00
Ethan Dalool ecfb96820c Correct index helptext to say index instead of mash. 2020-01-27 19:21:41 -08:00
Ethan Dalool 4e74d4be6e Update license to 2020. 2020-01-27 19:02:32 -08:00
Ethan Dalool 698e3820e8 Delete gitattributes.
I must have added it back when I was committing .db files
to github but no need for that any more.
2020-01-27 19:01:54 -08:00
Ethan Dalool f577cff9a0 Delete all this templated junk out of gitignore. 2020-01-27 19:01:05 -08:00
Ethan Dalool 9016292bde Delete the 20180409 html file, it's on my .io page anyway. 2020-01-27 18:59:47 -08:00
Ethan Dalool 19bd53115e Fix reference to new name timesearch_modules. 2020-01-27 18:58:04 -08:00
Ethan Dalool 1fb281bf7f Rename mergedb.py -> merge_db.py. 2020-01-27 18:57:06 -08:00
Ethan Dalool d2220a3ced Rename getwiki.py -> get_wiki.py. 2020-01-27 18:54:04 -08:00
Ethan Dalool 6b0dd55431 Rename getstyles.py -> get_styles.py. 2020-01-27 18:53:19 -08:00
Ethan Dalool 2022db2b0c Rename redmash.py -> index.py. 2020-01-27 18:45:36 -08:00
Ethan Dalool 744dadd3ee Rename commentaugment.py -> get_comments.py. 2020-01-27 18:41:58 -08:00
Ethan Dalool 75648343e2 Rename timesearch.py -> get_submissions.py. 2020-01-27 18:39:54 -08:00
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 28216c76e1 Add timesearch_logo.svg. 2020-01-19 10:58:20 -08:00
Ethan Dalool 2e2da2b816 Bump version number.
To date of the last commits.
2020-01-11 20:30:08 -08:00
Ethan Dalool 43ce535b4f Add argument --offline to redmash, points to offline_reading files.
Previously, the files generated by offline_reading were difficult
to use because there was no index file and the filenames are just ids.
So now, the redmash can act as an index!
2020-01-05 20:51:31 -08:00
Ethan Dalool 20c827566f Use DBEntry in redmash to get rid of all this column junk. 2020-01-05 20:40:52 -08:00
Ethan Dalool f2f1db6bc9 Move the DBEntry class to tsdb. 2020-01-05 20:35:15 -08:00
Ethan Dalool 15009a3409 Refer to this as link instead of shortlink specifically.
Stay tuned to see why!
2020-01-05 20:25:35 -08:00
Ethan Dalool ceb66c772a Separate the generating of html from the writing it.
I was not happy with the fact that html_from_database actually
performed the file writes. Furthermore the other tool modules have
a titular function that performs the most main task but this one
didn't, it was hidden inside this function. So let's make
html_from_database just a generator and have a function
offline_reading that does what you came here to do.
2020-01-05 20:07:33 -08:00
Ethan Dalool 7dc240e905 Rename these arguments to indicate they are db rows. 2020-01-05 19:49:27 -08:00
Ethan Dalool 927d5c57a0 Simplify the sql select instead of complicating the else case. 2020-01-05 19:48:40 -08:00
Ethan Dalool cba93b33e7 Replace bespoke code with call to common.t3_prefix. 2020-01-05 19:29:36 -08:00
Ethan Dalool 330c1b28fa Add <title> to offline_reading pages. 2020-01-05 19:10:27 -08:00
Ethan Dalool 0cdf7bcec5 Put each redmash line into its own div.
Apparently there are huge browser performance consequences for
having it as lines with brs.
2020-01-05 18:44:16 -08:00
Ethan Dalool 696fab9178 Woah I forgot I had a version number.
I'm setting it to the last commit instead of today's date.
2020-01-05 14:05:45 -08:00
Ethan Dalool 183f1aa5da Point reddit thread link to archive copy. 2019-11-02 17:30:13 -07:00
Ethan Dalool 941351e00f Add archive copy of "reddit removes timestamp search" thread. 2019-11-02 17:21:46 -07:00
Ethan Dalool 6fc6c2238d Apply BSD-3 license. 2019-07-25 18:48:10 -07:00
Ethan Dalool dba35e3c9b Add a couple retries to pushshift calls.
I was getting some 503 recently.
2019-06-25 15:01:10 -07:00
Ethan Dalool bca5addab3 For failed steps, yield fake 0 instead of artificial wait.
Because the caller can impose their own wait between steps
of the generator.
2019-06-25 15:00:38 -07:00
Ethan Dalool feed4c5621 Add unix timestamp to output so reusing as --lower is easier. 2019-06-25 14:49:50 -07:00
Ethan Dalool 871a56dd81 Replace angle brackets with lt, rt before markdown. 2019-05-02 17:30:14 -07:00
Ethan Dalool b5160cb6c4 Add some more docstrings here and there. 2018-10-28 22:56:46 -07:00
Ethan Dalool 07ca340c80 Add TSDB.for_submission to remove some duplicate effort. 2018-10-28 22:56:05 -07:00
Ethan Dalool 62bd899e93 Fix bug when only -s is provided to offline_reading. 2018-10-28 22:11:42 -07:00