summaryrefslogtreecommitdiff
path: root/server/szurubooru/func/util.py
AgeCommit message (Collapse)Author
2025-02-15Merge branch 'master' into hunternifHunternif
2021-11-29server: fix python docstring formattingShyam Sunder
2021-08-04Merge remote-tracking branch 'origin/master' into hunternifHunternif
# Conflicts: # client/css/post-content-control.styl # client/css/post-list-view.styl # client/html/post_edit_sidebar.tpl # client/js/controllers/post_list_controller.js # client/js/controllers/post_main_controller.js # client/js/controllers/post_upload_controller.js # client/js/controllers/tag_controller.js # client/js/controllers/user_list_controller.js # client/js/controls/expander_control.js # client/js/controls/post_content_control.js # client/js/controls/post_edit_sidebar_control.js # client/js/controls/post_readonly_sidebar_control.js # client/js/controls/tag_input_control.js # client/js/main.js # client/js/models/abstract_list.js # client/js/models/post.js # client/js/models/post_list.js # client/js/models/settings.js # client/js/models/tag.js # client/js/models/tag_list.js # client/js/tags.js # client/js/util/search.js # client/js/util/touch.js # client/js/util/uri.js # client/js/util/views.js # client/js/views/post_main_view.js # client/js/views/post_upload_view.js # client/js/views/posts_header_view.js # client/js/views/posts_page_view.js # client/js/views/settings_view.js # client/js/views/tag_view.js # client/package-lock.json # client/package.json # server/config.yaml.dist # server/szurubooru/api/__init__.py # server/szurubooru/api/post_api.py # server/szurubooru/api/tag_api.py # server/szurubooru/func/posts.py # server/szurubooru/func/tags.py # server/szurubooru/model/__init__.py # server/szurubooru/model/post.py # server/szurubooru/model/tag.py # server/szurubooru/search/configs/__init__.py # server/szurubooru/search/configs/post_search_config.py # server/szurubooru/search/executor.py # server/szurubooru/tests/api/test_post_retrieving.py # server/szurubooru/tests/api/test_post_updating.py # server/szurubooru/tests/api/test_tag_updating.py # server/szurubooru/tests/conftest.py # server/szurubooru/tests/func/test_posts.py # server/szurubooru/tests/func/test_tags.py # server/szurubooru/tests/search/configs/test_post_search_config.py
2020-06-06client+server: implement code autoformatting using prettier and blackShyam Sunder
2020-06-05server: format code to flake8Shyam Sunder
2019-04-21server: query posts by metric valuesHunternif
2018-03-25server/auth: add token authenticationReAnzu
* Users are only authenticated against their password on login, and to retrieve a token * Passwords are wiped from the GUI frontend and cookies after login and token retrieval * Tokens are revoked at the end of the session/logout * If the user chooses the "remember me" option, the token is stored in the cookie * Tokens correctly delete themselves on logout * Tokens can expire at user-specified date * Tokens have their last usage time * Tokens can have user defined descriptions * Users can manage login tokens in their account settings
2018-03-08server/posts: auto convert GIFs to WEBMs/MP4sReAnzu
- Default setting is false for both conversions, as this will require additional resources of the server, but is bandwidth friendly for viewers - WEBM conversion is slow, but better quality than MP4 conversion with a typically smaller file size - Tags are copied over from the original upload - Snapshots are generated for the new auto posts
2017-04-24server: lintrr-
2017-02-05server: refactor + add type hintingrr-
- Added type hinting (for now, 3.5-compatible) - Split `db` namespace into `db` module and `model` namespace - Changed elastic search to be created lazily for each operation - Changed to class based approach in entity serialization to allow stronger typing - Removed `required` argument from `context.get_*` family of functions; now it's implied if `default` argument is omitted - Changed `unalias_dict` implementation to use less magic inputs
2017-02-03server: make linters happierrr-
2016-12-26server/image-hash: add image search enginerr-
2016-11-20server/util: fix API queries for empty ?optionsrr-
2016-08-20server/posts: use SHA1 checksumsrr-
This changes the checksums to ones that are compatible with 1.x, which relieves the migration script from recalculating the checksums for all the posts.
2016-08-16server/general: improve versioning effectivenessrr-
...by integrating it with sqlalchemy that adds WHERE conditions for each UPDATE and DELETE statement.
2016-08-14server/general: embrace most of PEP8rr-
Ignored only the rules about continuing / hanging indentation. Also, added __init__.py to tests so that pylint discovers them. (I don't buy pytest's BS about installing your package.)
2016-08-14server/general: ditch falcon for in-house WSGI apprr-
For quite some time, I hated Falcon's class maps approach that caused more chaos than good for Szurubooru. I've taken a look at the other frameworks (hug, flask, etc) again, but they all looked too bloated/over-engineered. I decided to just talk to WSGI myself. Regex-based routing may not be the fastest in the world, but I'm fine with response time of 10 ms for cached /posts.
2016-08-14server/util: fix case conversionrr-
2016-08-14server/util: improve catching bad field namesrr-
KeyError could catch exceptions that happened inside the serializer routine and mistakenly report them as an error with user input.
2016-08-07server/general: add entity versionsrr-
2016-07-03server/general: use UTC time stampsrr-
2016-06-18server/info: expose a few config variablesrr-
2016-06-11server/general: rename _fields to fieldsrr-
2016-06-11server/general: report bad field names to userrr-
2016-05-30server/api: add ability to select fieldsrr-
2016-05-30server/general: move extra details to resourcesrr-
2016-05-20server/images: replace pipes with temp filesrr-
ffmpeg's GIF demuxer needs the input stream to be seekable, which rules pipes out.
2016-05-10server/scores+favorites: merge duplicate coderr-
2016-05-07server/posts: add post listingrr-
2016-05-02server/posts: add post creatingrr-
2016-04-24server/comments+posts: add ratingrr-
2016-04-20server/general: rename 'misc' to 'util'rr-