Hugh Rundle
7fc54c509c
fixes for bookwyrm csv import
...
- fix tests
- revert change to GenericImporter tests
- import the review name
- add extra properties to ImportItem
2024-08-10 16:37:30 +10:00
Mouse Reeve
43577f3ca0
Merge branch 'main' into csv
2024-07-27 12:26:21 -07:00
Adeodato Simó
0b87aacfce
pylint: enable useless-suppression
lint and perform cleanup
2024-07-27 03:47:35 -03:00
Hugh Rundle
1608ca6401
improve formatting
2024-07-27 13:16:34 +10:00
Hugh Rundle
94dfbbcc05
fix BookwyrmBooksImporter and tests
...
- change class attribute to instance attribute for mappings
- remove comment from test
- order import retry jobs in generic importer test
This last change seems innocuous but I may be missing something more fundamental - it was otherwise failing when multiple tests are run, I think because running tests in parallel led to import jobs getting out of order?
2024-07-27 12:55:15 +10:00
Hugh Rundle
06d6360082
merge latest changes and add tests
2024-06-30 18:54:59 +10:00
Hugh Rundle
e5b260e3ee
Merge branch 'main' into csv
2024-06-29 16:03:15 +10:00
Bart Schuurmans
acae063652
Fix new warnings from pylint upgrade
2024-04-26 13:59:16 +02:00
Hugh Rundle
539a9fa212
csv import and export fixes
...
Adds shelved and published dates for books and their imported reviews.
Provides option to create new (custom) shelves when importing books.
fixes #3004
fixes #2846
fixes #2666
fixes #2411
2023-11-25 17:34:12 +11:00
Hugh Rundle
25a2615d5f
stop pylint constantly whining
2023-10-28 06:51:26 +11:00
Hugh Rundle
f30555be0f
minor pylint and mypy fixes
2023-10-23 21:30:17 +11:00
Hugh Rundle
fd1ebf5f71
formatting and pylint fixes
2023-10-22 16:52:29 +11:00
CSDUMMI
688978369f
Implement self-contained archives to import and export entire users between instances ( #38 )
...
Co-authored-by: Daniel Burgess <developerdannymate@gmail.com>
Co-authored-by: Hugh Rundle <hugh@hughrundle.net>
Co-authored-by: dannymate <dannymate@noreply.codeberg.org>
Co-authored-by: hughrun <hughrun@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/GuildAlpha/bookwyrm/pulls/38
Co-authored-by: CSDUMMI <csdummi.misquality@simplelogin.co>
Co-committed-by: CSDUMMI <csdummi.misquality@simplelogin.co>
2023-09-07 22:37:28 +02:00
Joeri de Ruiter
0686926048
Type annotations for bookwyrm.importers
2023-08-21 16:58:16 +02:00
Mouse Reeve
718939834a
Fixes check on isbn list length in LT importer
2023-04-18 10:04:20 -07:00
Giebisch
5faf7f5e87
Fixed Import limit for retries
2023-01-17 01:07:10 +01:00
Giebisch
5200ea585a
Import Limit Bugfix and lint
2023-01-05 23:37:43 +01:00
Mouse Reeve
d4351cfcb4
Merge branch 'main' into import-limit
2022-12-16 12:44:57 -08:00
Giebisch
df54df8309
Added Import Limit
2022-12-15 23:43:25 +01:00
Rick Osborne
862260294a
StoryGraph import ISBN tweak
...
Looks like SG updated their CSV headers just a little, so that the importer
hadn't been picking up the ISBN.
2022-12-02 19:16:22 -08:00
Mouse Reeve
8b068e94d5
Headers aren't one of the rows
2022-11-25 12:19:49 -08:00
Mouse Reeve
304757091e
Fixes checking csv length to consider headers
2022-11-25 10:53:42 -08:00
Mouse Reeve
015af2c1e7
Don't start imports with empty csvs
...
Fixes #2353
2022-11-25 10:35:16 -08:00
Mouse Reeve
7a36de5ebe
Start and stop jobs from the model
2022-11-05 14:35:27 -07:00
Mouse Reeve
97513a43d6
Set import job status when job starts and finishes
2022-11-05 13:47:06 -07:00
Mouse Reeve
24e5ea3295
Check if import is stopped and create import status field
2022-11-05 13:32:23 -07:00
Mouse Reeve
94a6675dc4
Pylint fixes
2022-07-02 12:07:22 -07:00
André Jaenisch
d837146b66
Make black happy
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-23 20:59:28 +02:00
André Jaenisch
12541d5f1c
Map timestamp to date_added to avoid integrity error.
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-23 20:52:26 +02:00
André Jaenisch
22fcb61fb2
Write tests for Calibre importer
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-05 13:08:01 +02:00
André Jaenisch
6bd9b725e2
Refactor hard-coded strings with a reference to a static property
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-05 13:07:25 +02:00
André Jaenisch
eeb1cc7197
Use a default shelf because Calibre indicates no reading status
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-04-30 19:08:31 +02:00
André Jaenisch
3626db3c1a
Add Calibre importer for CSV exports
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-04-30 15:25:35 +02:00
Mouse Reeve
5b192d1b3d
Fixes error when librarything csv is missing isbn
2021-12-28 15:27:35 -08:00
Mouse Reeve
a33b5b054f
Retain source on retry jobs
2021-12-14 13:14:45 -08:00
Mouse Reeve
ba390dc3ad
Safer user of "lower"
2021-12-14 12:50:53 -08:00
Mouse Reeve
4f1d4d9bc0
Adds openlibrary keys to data
2021-12-14 12:42:56 -08:00
Mouse Reeve
bb69c32a6c
Adds support for openlibrary csv shelf name format
2021-12-14 11:58:56 -08:00
Mouse Reeve
14e2960d06
Update legacy jobs
2021-11-14 10:58:46 -08:00
Mouse Reeve
47b98ad0d9
Track completed items on job
2021-11-14 09:04:12 -08:00
Mouse Reeve
9e673834dc
Check for duplicates
2021-11-14 08:35:16 -08:00
Mouse Reeve
2748e0a824
Check for existing reviews/ratings on import items
2021-11-14 07:50:19 -08:00
Mouse Reeve
bdc3f6828b
Python formatting
2021-11-14 07:11:48 -08:00
Mouse Reeve
c614f638fd
Merge branch 'import-field-names' of github.com:bookwyrm-social/bookwyrm into import-field-names
2021-11-14 07:06:48 -08:00
Mouse Reeve
7f06ee3844
Fixes getting isbn for librarything imports
2021-11-13 12:46:27 -08:00
Mouse Reeve
fb91c33682
Fixes isbn assignment for goodreads
2021-11-13 12:24:16 -08:00
Mouse Reeve
1e46de4c9d
Associate imported review with import item
2021-11-13 11:44:05 -08:00
Mouse Reeve
c245ad09bb
Make sure book is in the right format
2021-11-13 09:07:50 -08:00
Mouse Reeve
08f4ad6cd4
Fixes call to import task
2021-11-13 09:02:42 -08:00
Mouse Reeve
40fff02eec
Approve or delete import guesses
2021-11-12 17:10:47 -08:00