Commit Graph

61 Commits

Author SHA1 Message Date
8161e5e92a
cli: make devscripts subcommand more accessible 2024-07-28 14:32:13 +02:00
4e356f122a
models/migrations: redo initial migration 2024-07-28 14:12:45 +02:00
f62011d6f7
pyproject.toml: add missing deps 2024-07-28 14:09:40 +02:00
2242b3ce74
README: move issues from TODO list to gitea issue tracker 2024-07-27 23:14:27 +02:00
b2432e782e
services/metadata_fetchers: init
Co-authored-by: Oystein Kristoffer Tveit <oysteikt@pvv.ntnu.no>
2024-07-27 22:24:34 +02:00
ec448c9f57
add more test data 2024-05-17 22:35:18 +02:00
80fafbe3df
cli/prompt_utils: clear some bugs 2024-05-17 22:35:18 +02:00
fa180ca354
cli/main: add command to show borrowed/queued items, move list_bookcases to advanced 2024-05-17 22:35:17 +02:00
b3f80888d5
cli/search: clear some bugs 2024-05-17 22:35:17 +02:00
77175cbb3a
cli/bookcase_item: add command to extend borrowing 2024-05-17 22:35:17 +02:00
36ddc59253
flake.nix: add support for more architectures + misc 2024-04-29 00:16:21 +02:00
d999d6710c
README: add further notes on future work with online sources 2024-01-14 03:58:22 +01:00
d678b1f525
cli: implement slabbedasker 2024-01-14 03:55:36 +01:00
1e3a24f575
fix csv test data spacing issue 2024-01-14 03:54:59 +01:00
832c95198d
flake.nix: add devShell 2024-01-14 03:41:58 +01:00
03f221a807
misc: small formatting and error checking improvements 2024-01-14 03:41:40 +01:00
369180ff85
deadline-daemon: implement remaining pieces 2024-01-14 03:40:27 +01:00
1550c1f2e3
Add scripts to seed data for testing + misc 2024-01-14 03:39:16 +01:00
a08c1ea5f0
Update README.md
Checked ascii art of monkey since we know have worblehat-banner.txt
2023-08-27 03:12:13 +02:00
e574fc5817 added ascii art banner of our favorite orangutan 2023-08-27 02:44:39 +02:00
d13a3a0932
cli: add some search functionality 2023-05-12 16:18:30 +02:00
e154989a16
Update README 2023-05-12 02:58:45 +02:00
b83175e39a
Add DeadlineDaemon
The deadline daemon is supposed to send emails
to users who have borrowed books and are supposed to deliver
them back, or users who have added themselves to the queue,
and is waiting for a book.
2023-05-12 02:37:56 +02:00
18a1667b7b
A few small improvements:
- Add missing flushes to cli
- Update README TODOs
- Add some documentation comments
- Rename AdvancedOptions -> AdvancedOptionsCli
2023-05-12 02:31:46 +02:00
fad38adc50
Move all functionality under a single worblehat command 2023-05-12 02:27:26 +02:00
31184dde12
Update README TODO-list 2023-05-10 21:55:01 +02:00
b2f8d23637
cli: add commands for borrowing and delivering items 2023-05-10 21:53:49 +02:00
18053bf002
cli: move some commands to Advanced submenu 2023-05-10 17:50:18 +02:00
634397cdaf
cli: fix done not returning
The previous `Done` commands would not return properly.
All `Done`/`Exit` commands have also gotten the common number 9
2023-05-10 17:45:07 +02:00
78fa3076b9
Set up alembic, and more
- Setup alembic and generate the initial migration
- Add poethepoet to dev dependencies in order to put hard-to-remember
  commands beneath the poetry namespace
- Add psycopg2-binary dependency, for use with postgresql
- Remove dotenv dependency, as it is no longer required
- Add `config.toml` to gitignore. This is because alembic has no
  argument parser that will let you specify the config file to use.
  Developers are encouraged to use `config.toml`, which will be
  automatically recognized, unless they want to implement the argument
  parser functionality for alembic.
2023-05-06 17:52:15 +02:00
8dda521f7e
Update frontend dependencies 2023-05-06 17:34:21 +02:00
30ee10ec0c
Add argument parser and toml-based config file
- Create a common argument interface and config file format for both
  cli and flask version of application.
- Bumped the python version constraint to ^3.11 in order to use the
  native tomllib for reading config file.
- Move all the flask specific code under `worblehat.flaskapp`
2023-05-06 17:22:38 +02:00
9b96875346
Misc improvements:
- Extract the bookshelf selector into its own file, since it was a
  little bit complicated with completion and everything.
- Print out bookcase item information on every prompt in the bookcase
  item specific subclis
- Add funcs to EditBookcaseCli
- Add shelf editing to EditBookcaseCli
- Ensure shorthand column-row pairs are always written in that order
2023-05-06 03:51:35 +02:00
cd666377f8
Remove old data fetching logic 2023-05-06 03:07:29 +02:00
3525e84576
Start converting the scanner tool into a cli tool
The scanner tool is about to become a fullfledged repl, much in the same
manner as dibbler.

Changes:

- Rename `tools/scanner.py` -> `cli/main.py`
- Create abstraction layer for Cmd with numbered commands
- Create submenu for items
- Lots of functionality edits
- Fill out more todos in REAMDE
2023-05-06 02:37:28 +02:00
c445cb2dbd
Add database support for borrowing and borrow queues 2023-05-05 22:54:45 +02:00
4e868c3324
Misc changes:
- Rename BookcaseLocation -> BookcaseShelf
- Remove `name` from BookcaseShelfs, and use columns and rows to index
  them instead
- Add `amount` to BookcaseItem, and make isbn unique
- Remove ability to use scanner tool without database
- Add a lot of real bookshelfs to seeding data
2023-05-05 22:31:06 +02:00
98eed07417
👉👁️👄👁️👈 2023-05-04 17:24:17 +02:00
cebb6ccb86
Add flake.nix to project 2023-05-04 17:24:17 +02:00
e04d558b3a
Move old scanner scripts to worblehat/services 2023-05-04 16:20:30 +02:00
4ac110f527
Misc changes:
- Migrate project to use poetry for ease of dependency management and
  building
- Add wsgi prod and dev entrypoints
- Start working on a more rigid scanning tool
- Remove unused ignores in .gitignore
- Update README about changes
2023-05-04 16:17:35 +02:00
e57c638683
Misc changes:
- Update database models to the new declarative mapping syntax
  See https://docs.sqlalchemy.org/en/20/orm/mapping_styles.html#orm-declarative-mapping
- Make use of Flask-SQLAlchemy to manage database connections
- Remove cli command interface in favor of just deleting the
  sqlite file and reseeding when no tables are detected.
- Add list of iso639_1 language codes and names, and add to seed list
- Other changes to file structure.
2023-05-01 01:37:52 +02:00
f72188b063 generated new example file for the shelf in the working room 2023-04-02 03:04:13 +02:00
be535daa47 added usage of isbnlib to data fetchers 2023-04-02 03:02:37 +02:00
ff3d6b3a24 fixed todo in readme 2023-04-02 01:16:52 +02:00
124de5db5e Foreslo en alternativ prosedyre til bygging av databasen 2023-04-02 01:12:09 +02:00
d31dbf5daf scanned one shelf to have test data 2023-04-02 01:06:51 +02:00
73cc5f0d84 added some scripts operating on csvs 2023-04-02 01:06:51 +02:00
45d5a5e3bd added colon for error printout 2023-04-02 01:06:51 +02:00
80663435ce La til isbntools som noe vi må se på i TODO 2023-04-02 01:06:46 +02:00