Commit Graph

50 Commits

Author SHA1 Message Date
0c53f4e003 Fix linting and formatting 2022-01-25 01:09:27 -08:00
9e6390662b Download fonts at app startup instead
We can't bake the font into the Docker image as such, because we mount
the volumes which blows away anything we have in the app tree
beforehand.

We could stash it somewhere in the image and then copy it from there on
app startup or something, but at that point we might as well just
download it as part of the app startup.
2022-01-25 00:53:01 -08:00
766a0cc652 Fix tests 2022-01-24 23:16:15 -08:00
6f5115c716 Use Source Han Sans for preview images generation 2022-01-24 23:16:15 -08:00
5b690532fa Add an AttributeError exception for CI tests 2021-12-04 19:59:45 +01:00
5e9e7db935 Fix preview image text wrap length
Closes #1634
2021-12-04 19:08:55 +01:00
ad6aaa6bc8 Update preview_images.py 2021-11-20 17:15:58 +01:00
f26a41bd10 Prevent empty file name 2021-11-20 17:10:29 +01:00
d74df047c5 Clean up file before saving 2021-11-20 16:59:05 +01:00
40264e372d Update preview_images.py 2021-11-20 16:26:02 +01:00
37508d2583 Update preview_images.py 2021-11-20 16:23:50 +01:00
90c74f00c9 Fixes missing f format in preview image string
plus a unit test for it
2021-09-20 17:40:59 -07:00
ea303fb285 Updating string format synatx part 3 2021-09-20 16:45:26 -07:00
08f6a97653 Python formatting 2021-09-18 11:33:43 -07:00
377a4e1ef1 Updating string format syntax part 1 2021-09-17 21:39:18 -07:00
aa91361fe4 Fixes celery kwarg for queue 2021-09-07 17:09:44 -07:00
de3f18655c Set priorities on tasks 2021-09-07 16:33:43 -07:00
2b6423792c Use update_fields when saving preview images 2021-08-03 11:47:52 -07:00
2fbbf522ce Update preview_images.py 2021-06-19 17:46:18 +02:00
bcb6e1c40a Fix storage media removal 2021-06-19 17:10:25 +02:00
8e7c43baa7 Fixes preview tests 2021-06-18 15:58:21 -07:00
59938e2d46 Linter fixes for models 2021-06-18 15:24:10 -07:00
d8d6f57373 Linting fixes for preview image code 2021-06-18 15:08:36 -07:00
cd7c0ccaea Enable env on GitHub Actions 2021-05-29 15:51:56 +02:00
00b09cd07d Try with logging 2021-05-29 14:43:06 +02:00
fbb262fe88 Try logging output 2021-05-29 13:44:43 +02:00
cc0881b11c Try another way 2021-05-29 12:33:04 +02:00
022182e114 See if the image is saved in DB in the Github Actions test environment 2021-05-29 11:33:37 +02:00
0f80456a08 Save as JPG 2021-05-28 23:42:04 +02:00
0e28b79089 third time's the charm 2021-05-28 22:10:57 +02:00
71bc35224b no, this will work 2021-05-28 22:00:26 +02:00
8755b92c2e Fix GitHub FileNotFoundError 2021-05-28 21:40:20 +02:00
ec159ebcb0 Test generating preview images 2021-05-28 21:24:45 +02:00
08cebd7051 Lint 2021-05-28 17:26:43 +02:00
f206f61e9a Use global switch to enable/disable preview images 2021-05-28 17:00:07 +02:00
e214d8b879 Rationalize paths handling 2021-05-26 17:55:39 +02:00
f7b117e4fb Update preview_images.py 2021-05-26 15:46:40 +02:00
a8ae3c9950 Modify inner image position 2021-05-26 15:37:09 +02:00
eb56cced8d Lint 2021-05-26 14:46:34 +02:00
65de40a95a Add generate_preview_images command 2021-05-26 13:52:10 +02:00
b47edc5f0d Add dark mode 2021-05-26 13:07:33 +02:00
bf503d370c Add user preview task 2021-05-26 12:54:57 +02:00
34caa36ab7 Add site preview task 2021-05-26 10:19:39 +02:00
101ca0ff81 Refactor some 2021-05-26 09:44:32 +02:00
8c25272462 Fix last night's bugs 2021-05-26 09:09:13 +02:00
5b03934ec3 Update preview_images.py 2021-05-25 23:16:33 +02:00
e305c5d73d Fix color 2021-05-25 23:12:54 +02:00
dca0888d5d Thank you Black 2021-05-25 23:05:38 +02:00
fa7334826c Update 2021-05-25 23:04:28 +02:00
d1737b44bd First functioning commit
TODO

- [ ] Delay task (Celery?)
- [ ] Store the image in a subfolder unique to the edition, to make cleaning up the image easy
- [ ] Clean up the image before replacing it
- [ ] Ensure that the image will be cleaned when the edition is deleted ??
- [ ] Use instance custom colors?
- [ ] Use book cover color base?
2021-05-25 00:41:53 +02:00