Commit Graph

1260 Commits (7527b3678fa050a0971056388a6e10b989bd8774)

Author SHA1 Message Date
voussoir 84a5e2b4e1 Significant updates to editor.js. 2021-01-01 19:46:06 -08:00
voussoir 89195d3449 Add comment about response catching strictness levels. 2021-01-01 19:08:36 -08:00
voussoir b73fb69612 Add comment about foreign keys. 2021-01-01 17:02:03 -08:00
voussoir 9d048a5d88 Improve export_symlinks. 2021-01-01 17:02:03 -08:00
voussoir ea5f22bae1 Remove unused unicodedata.
Relevant function got moved to stringtools.
2021-01-01 17:02:03 -08:00
voussoir 0cd5427806 database_upgrader no longer needs to be its own directory. 2021-01-01 17:02:03 -08:00
voussoir b04f93db19 Delete old_inits, let's always inline from now on.
The Regenerator class should help with the bulk table rebuilding
that the old inits was added for.
2021-01-01 17:02:03 -08:00
voussoir ffbfa77ecc Add UI dropdown for orderby basename. 2021-01-01 17:02:03 -08:00
voussoir d55cc5c58a Use a dict instead of if/elif. 2021-01-01 17:02:02 -08:00
voussoir 2c29c196a7 Return friendly and expanded orderby column separately.
Previously, the UI had to un-transform the expanded column back
into the friendly name, which was silly and cumbersome.
2021-01-01 17:02:02 -08:00
voussoir 79327de0f0 Rearrange these continues into relevant condition. 2021-01-01 17:02:02 -08:00
voussoir b1000dd0f8 Move orderby direction check above column expansion. 2021-01-01 17:02:01 -08:00
voussoir 8ecf594945 Move jsonify methods into the objects instead of separate file. 2021-01-01 17:02:01 -08:00
voussoir 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
voussoir 94130e4803 Add betterhelp docstring. 2021-01-01 17:02:00 -08:00
voussoir 84b35c3eaa Only purge deleted files, empty albums within the cwd. 2021-01-01 17:02:00 -08:00
voussoir 968d84b3cb Add export_symlinks command. 2021-01-01 17:02:00 -08:00
voussoir 5d11b0cfeb Update extension column when filepath is updated. 2021-01-01 17:02:00 -08:00
voussoir 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
voussoir 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
voussoir 6a98631f2d Add sql_executescript. 2021-01-01 17:01:59 -08:00
voussoir 8e964e2888 Add get_albums_within_directory. 2021-01-01 17:01:52 -08:00
voussoir 017633331b Fix yield photo should only happen when not exception. 2020-12-30 15:50:29 -08:00
voussoir 023c540dbf Fix init command, should create _etiquette directory. 2020-12-30 15:50:29 -08:00
voussoir aa3bc2d100 Rename purge_deleted_photos -> purge_deleted_files. 2020-12-30 15:50:23 -08:00
voussoir f9e7049424 Change allowed_orderby_columns from list to set; alphabetize. 2020-12-29 16:06:43 -08:00
voussoir a4a1f39ede Fix response.json_ok -> response.meta.json_ok. 2020-12-26 13:22:19 -08:00
voussoir 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
voussoir 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
voussoir 33b4799268 Only log "needed but not received" if there are any. 2020-12-26 12:13:54 -08:00
voussoir cdfa0531a2 Add Mirrors header. 2020-12-23 19:56:15 -08:00
voussoir 5bab0b8972 Add codeberg to mirror list. 2020-12-15 23:11:12 -08:00
voussoir a91366149b Transition calls to getpermission to interactive. 2020-12-07 00:54:53 -08:00
voussoir a604cfa5cd Add alias tag-breplace. 2020-11-27 15:40:13 -08:00
voussoir 1cf6e64bfa Add remove_tag command. 2020-11-27 15:39:58 -08:00
voussoir f09115d1b8 Add to do item for search results RSS. 2020-11-20 17:54:38 -08:00
voussoir ac51608472 Update contributing.md to deprioritize discord. 2020-11-20 16:31:26 -08:00
voussoir 01f85d41b6 Use voussoirkit.stringtools for remove_characters. 2020-11-16 00:13:35 -08:00
voussoir 4988f6dbdd Fix missing parameters for get_users_by_sql. 2020-11-15 22:20:36 -08:00
voussoir 6fe3cecead Remove old import for logging. 2020-11-15 22:20:36 -08:00
voussoir 469103e0ac Use voussoirkit.stringtools for comma_space_split. 2020-11-15 22:20:36 -08:00
voussoir 98b6d93094 Use voussoirkit.stringtools for collapse_whitespace. 2020-11-15 22:20:36 -08:00
voussoir 9ca40c6ae7 Use voussoirkit.gentools for chunk_generator. 2020-11-15 22:20:36 -08:00
voussoir 7d454a03ac Incorporate __name__ into photodb's logger. 2020-11-15 22:20:36 -08:00
voussoir 9e6f8041fb Use voussoirkit.stringtools for pascal_to_loudsnakes. 2020-11-15 22:20:36 -08:00
voussoir f08df6266f Add github/gitlab link at bottom of readme. 2020-11-15 22:20:36 -08:00
voussoir f112a3d041 Add support for file glob patterns in add_tag command. 2020-11-15 22:20:30 -08:00
voussoir a1fd6c26c5 Add show_associated_directories command. 2020-11-15 17:49:28 -08:00
voussoir 1a6abf00b9 Use voussoirkit hms instead of local function. 2020-11-15 17:44:10 -08:00
voussoir 9e322c18d4 Fix pascal_to_loudsnakes to handle repeated caps as single term. 2020-11-09 16:20:03 -08:00