Commit graph

604 commits

Author SHA1 Message Date
47c879764a
Rename timestamp_to_datetime to utcfromtimestamp.
It is what it is.
2022-07-21 17:21:49 -07:00
2562084fce
Experimental atom feed for photos, albums, search. 2022-07-20 19:03:27 -07:00
4001f6f371
Use datetime objects instead of timestamps in object model.
Trying to make better use of objects in this object oriented language.
2022-07-20 19:03:26 -07:00
cb43b5d9e0
Migrate all IDs from strings to ints. Random 32 bit IDs in future. 2022-07-20 19:03:26 -07:00
0e00a1e981
Use new worms version. 2022-07-20 19:03:25 -07:00
a436dafa9c
Use worms select_one_value. 2022-06-03 19:47:27 -07:00
d620660975
Let generate_id take the thing class instead of the table string. 2022-03-26 13:22:03 -07:00
c63f63f6a7
Use sql.row_factory = sqlite3.Row. 2022-03-26 13:22:02 -07:00
59eddb9d07
Remove pragma count_changes, which is deprecated. 2022-03-26 13:22:00 -07:00
e982858c28
Add a log.debug when connecting to sqlite file. 2021-12-21 16:57:08 -08:00
8a44c8ec2e
Let normalize_tagset handle given individual tag objects. 2021-12-21 16:52:46 -08:00
d8cc841f5c
Remove unnecessary .absolute_path thanks to fspath. 2021-12-07 12:45:08 -08:00
2eaac9e996
Return early from ephemeral so we can dedent this code. 2021-11-14 15:43:50 -08:00
4da25c1d9e
Replace get_author with @property author. 2021-10-23 18:48:14 -07:00
b3ed94c22b
Replace these warning strings with proper exception classes. 2021-10-18 14:17:20 -07:00
81640102d5
Use keyword argument for FeatureDisabled message. 2021-10-18 14:12:22 -07:00
7b7c74b15d
Use a semicolon instead of ampersand for the linux example. 2021-10-18 14:09:31 -07:00
775287d8a8
Match worms abstract base class requirements. 2021-10-09 12:12:43 -07:00
d14d68b2c8
Use named argument data_directory. 2021-10-02 12:46:06 -07:00
98a545e166
Move assert_not_deleted to worms. 2021-10-02 12:45:37 -07:00
f510bb88c0
Use voussoirkit/worms. 2021-10-01 22:42:45 -07:00
1f7e299821
Add logging for loading / saving config file. 2021-10-01 22:42:45 -07:00
920a3d6450
Match configlayers update. 2021-10-01 22:42:45 -07:00
617ccc2694
Let create default to False. 2021-09-30 22:03:16 -07:00
1dfbdfa70c
Rename thumbnail directory to just "thumbnails". 2021-09-30 22:03:16 -07:00
a3f7c796c4
Replace self.sql.commit with self.commit. 2021-09-30 22:03:15 -07:00
2831eb43d0
Let closest_photodb have default path='.'. 2021-09-30 22:03:14 -07:00
a0f1b2d86d
Log exception instead of print_exc. 2021-09-12 21:19:30 -07:00
23f9a5427f
Make better use of vlogging. 2021-09-08 19:36:29 -07:00
7c1b6b293d
Move checkerboard_image to imagetools. 2021-09-05 01:36:07 -07:00
0c51201901
Move truthystring to stringtools. 2021-09-05 01:21:04 -07:00
e883409daf
Add some type annotations, document some exceptions. 2021-08-31 19:25:42 -07:00
2e0b4cfa14
Replace run_generator with gentools.run. 2021-08-31 19:23:56 -07:00
071b290fe6
Fix yielded pathclass of purge_deleted_associated_directories. 2021-08-25 21:41:53 -07:00
e9d5711f29
Some linting. 2021-08-20 22:54:12 -07:00
5dae9ba178
Use random.choices instead of random.choice in a loop. 2021-08-09 08:46:59 -07:00
53127e59ad
Use stringtools.natural_sorter. 2021-06-07 22:49:26 -07:00
40a3e9d1a0
Update rotate_by_exif call. 2021-06-06 20:33:49 -07:00
5ad4a458de
Only add delete_file action if the file still exists.
Files deleted out of etiquette can just be removed from the db.
2021-05-30 19:14:32 -07:00
1ee73feb6c
Rotate thumbnail by exif to ensure correct appearance. 2021-05-30 19:13:46 -07:00
cad360bc3f
Add photo.simple_mimetype to jsonify. 2021-05-24 20:42:44 -07:00
387b7f1096
Rename Photo.bytestring -> bytes_string. 2021-05-24 20:42:29 -07:00
a5913a17f9
Rename photo jsonify bytes_str, duration_str -> _string. 2021-05-24 20:19:58 -07:00
bfea9c097c
Correct docstring that author arg can't be user ids as strings. 2021-05-19 00:04:14 -07:00
2d2e80824f
Migrate scripts from spinal.walk_generator to spinal.walk. 2021-05-17 17:01:11 -07:00
26d5ff5730
Update closest_photodb to take starting path argument. 2021-05-16 21:08:51 -07:00
399d27bb44
Show absolute path instead of pathclass object in NoClosestPhotoDB. 2021-05-16 16:58:53 -07:00
a7b0ae4898
Correct docstring list -> set. 2021-05-15 18:18:37 -07:00
bb782d18b9
Add a little defense against mtime == 0. 2021-05-08 18:25:12 -07:00
3c299422d8
Add display_name to jsonify of album and bookmark. 2021-05-02 18:35:15 -07:00