Commit graph

1248 commits

Author SHA1 Message Date
8ecf594945 Move jsonify methods into the objects instead of separate file. 2021-01-01 17:02:01 -08:00
d3f6d6b26a Add exceptions to warning_bag instead of strings for some.
I was adding messages as strings because that's how they get shown on
the web interface. But it's better to return the real exception objects
and have the interface deal with it.
2021-01-01 17:02:01 -08:00
94130e4803 Add betterhelp docstring. 2021-01-01 17:02:00 -08:00
84b35c3eaa Only purge deleted files, empty albums within the cwd. 2021-01-01 17:02:00 -08:00
968d84b3cb Add export_symlinks command. 2021-01-01 17:02:00 -08:00
5d11b0cfeb Update extension column when filepath is updated. 2021-01-01 17:02:00 -08:00
6522bda09c Add basename in separate column so we can orderby it.
For a while I've wanted to be able to sort search results by the file's
basename. This is especially important for the cli. SQLite doesn't have
an easy way to split the filepath column by the slash, so the only
choice is to store basename as a separate column. I put it off for a
while but I think it's the right move. However we must not forget to
update it every time we update filepath, which is a bummer.
2021-01-01 17:02:00 -08:00
f9dc720ff8 Add Regenerator to rebuild tables after breaking changes.
See code comments. The problem is that since I always write the
newest upgrader and use it immediately, I've never actually taken
a very old database and run it through the whole series of
upgraders. So that will be necessary to have more confidence in this
system.
2021-01-01 17:01:59 -08:00
6a98631f2d Add sql_executescript. 2021-01-01 17:01:59 -08:00
8e964e2888 Add get_albums_within_directory. 2021-01-01 17:01:52 -08:00
017633331b Fix yield photo should only happen when not exception. 2020-12-30 15:50:29 -08:00
023c540dbf Fix init command, should create _etiquette directory. 2020-12-30 15:50:29 -08:00
aa3bc2d100 Rename purge_deleted_photos -> purge_deleted_files. 2020-12-30 15:50:23 -08:00
f9e7049424 Change allowed_orderby_columns from list to set; alphabetize. 2020-12-29 16:06:43 -08:00
a4a1f39ede Fix response.json_ok -> response.meta.json_ok. 2020-12-26 13:22:19 -08:00
8f9b4142a6 Improve UI performance of selecting / deselecting photo cards.
Move save_clipboard into a 0-timeout. Check checkboxes immediately
instead of relying on apply_check_all / update_pagestate to make a
redundant loop through everything.
2020-12-26 13:21:06 -08:00
7f2d463062 Hide the photo card holder when there are no photos.
I didn't like the narrow sliver of div that was left.
2020-12-26 12:14:42 -08:00
33b4799268 Only log "needed but not received" if there are any. 2020-12-26 12:13:54 -08:00
cdfa0531a2 Add Mirrors header. 2020-12-23 19:56:15 -08:00
5bab0b8972 Add codeberg to mirror list. 2020-12-15 23:11:12 -08:00
a91366149b Transition calls to getpermission to interactive. 2020-12-07 00:54:53 -08:00
a604cfa5cd Add alias tag-breplace. 2020-11-27 15:40:13 -08:00
1cf6e64bfa Add remove_tag command. 2020-11-27 15:39:58 -08:00
f09115d1b8 Add to do item for search results RSS. 2020-11-20 17:54:38 -08:00
ac51608472 Update contributing.md to deprioritize discord. 2020-11-20 16:31:26 -08:00
01f85d41b6 Use voussoirkit.stringtools for remove_characters. 2020-11-16 00:13:35 -08:00
4988f6dbdd Fix missing parameters for get_users_by_sql. 2020-11-15 22:20:36 -08:00
6fe3cecead Remove old import for logging. 2020-11-15 22:20:36 -08:00
469103e0ac Use voussoirkit.stringtools for comma_space_split. 2020-11-15 22:20:36 -08:00
98b6d93094 Use voussoirkit.stringtools for collapse_whitespace. 2020-11-15 22:20:36 -08:00
9ca40c6ae7 Use voussoirkit.gentools for chunk_generator. 2020-11-15 22:20:36 -08:00
7d454a03ac Incorporate __name__ into photodb's logger. 2020-11-15 22:20:36 -08:00
9e6f8041fb Use voussoirkit.stringtools for pascal_to_loudsnakes. 2020-11-15 22:20:36 -08:00
f08df6266f Add github/gitlab link at bottom of readme. 2020-11-15 22:20:36 -08:00
f112a3d041 Add support for file glob patterns in add_tag command. 2020-11-15 22:20:30 -08:00
a1fd6c26c5 Add show_associated_directories command. 2020-11-15 17:49:28 -08:00
1a6abf00b9 Use voussoirkit hms instead of local function. 2020-11-15 17:44:10 -08:00
9e322c18d4 Fix pascal_to_loudsnakes to handle repeated caps as single term. 2020-11-09 16:20:03 -08:00
8e3bcbc1af Promote some logs from debug to info, and add punctuation. 2020-11-08 21:29:56 -08:00
d653317907 Let sql_execute log as LOUD. 2020-11-08 20:21:40 -08:00
010c92cb73 Set photodb log_level from argv. 2020-11-08 20:20:04 -08:00
de2f1caa42 Don't use log_level from config -- pass it in to constructor.
The problem with the log_level config was twofold. First, there is some
work to be done before the config is be loaded, and so we must hardcode
the log level for that. I was using debug. Secondly, I have realized
that log levels should be pushed as close to the front of the UI code
as possible, not the backend code.
2020-11-08 20:09:16 -08:00
12ee2adedf Add alertresponse to a lot of callback functions. 2020-11-06 22:50:05 -08:00
0a31dad196 Rewrite these default callbacks as alertresponse. 2020-11-06 22:34:01 -08:00
bf9223bf67 Move response.completed into the meta. 2020-11-06 22:27:41 -08:00
99e64e358e Add missing semicolon. 2020-11-06 22:22:41 -08:00
68b27fced2 Add refresh_or_alert so errors aren't missed. 2020-11-06 21:42:28 -08:00
8d7f97a996 Fix etq repl starting in '.' instead of '.\_etiquette'. 2020-11-06 00:19:14 -08:00
5792c3bdcf Let set_searchhidden take no params, and simplify duplicate checks. 2020-11-05 18:22:19 -08:00
e80f27e1fd Fix excplicit yield_photos, yield_albums in search_in_cwd. 2020-11-05 18:21:33 -08:00