Compare commits

..

No commits in common. "d678b1f5255f8e8fcfa72525e46e748eadf9a3f2" and "832c95198d6bd452bc72ad9bf50e537a97fae008" have entirely different histories.

3 changed files with 32 additions and 57 deletions

View File

@ -62,7 +62,7 @@ Run `poetry run worblehat --help` for more info
- [ ] Ability to borrow and deliver multiple items at a time
- [X] Ability to enter the queue for borrowing an item
- [ ] Ability to extend a borrowing, only if no one is behind you in the queue
- [X] Ability to list borrowed items which are overdue
- [ ] Ability to list borrowed items which are overdue
- [~] Ability to search for items
- [ ] Ability to print PVV-specific labels for items missing a label, or which for any other reason needs a custom one
- [X] Ascii art of monkey with fingers in eyes

View File

@ -1,29 +1,29 @@
isbn,note,bookcase,shelf
9780486809038,emily riehl,arbeidsrom_smal,5
9781568811307,winning ways,arbeidsrom_smal,5
9780486458731,cardano,arbeidsrom_smal,5
9780486462394,alg topo,arbeidsrom_smal,5
9780582447585,formulae,arbeidsrom_smal,5
9780486466668,theory of numbers,arbeidsrom_smal,5
9780486462431,conv surf,arbeidsrom_smal,5
9780486449685,math fun and earnest,arbeidsrom_smal,5
9780486417103,lin prog,arbeidsrom_smal,5
9780130892393,complex analysis,arbeidsrom_smal,5
9781292024967,abstract alg,arbeidsrom_smal,5
9780471728979,kreyzig,arbeidsrom_smal,5
9781847762399,calc 1,arbeidsrom_smal,5
9781787267763,calc 1 nome,arbeidsrom_smal,5
9781787267770,calc 2 nome,arbeidsrom_smal,5
9780199208258,non lin ode,arbeidsrom_smal,5
9788251915953,tabeller,arbeidsrom_smal,5
9780750304009,fractals and chaos,arbeidsrom_smal,5
9788241902116,geometri,arbeidsrom_smal,5
9781620402788,simpsons,arbeidsrom_smal,5
9781846683459,math curiosities,arbeidsrom_smal,5
9789810245344,fuzzy logic,arbeidsrom_smal,5
9781429224048,vect calc,arbeidsrom_smal,5
9780122407611,gambling,arbeidsrom_smal,5
9788278220054,rottman slitt,arbeidsrom_smal,5
9780321748232,prob and stat,arbeidsrom_smal,5
9780387954752,stats with r,arbeidsrom_smal,5
9781568814421,maths by exp,arbeidsrom_smal,5
isbn, note, bookcase, shelf
9780486809038, emily riehl, arbeidsrom_smal, 5
9781568811307, winning ways, arbeidsrom_smal, 5
9780486458731, cardano, arbeidsrom_smal, 5
9780486462394, alg topo, arbeidsrom_smal, 5
9780582447585, formulae, arbeidsrom_smal, 5
9780486466668, theory of numbers, arbeidsrom_smal, 5
9780486462431, conv surf, arbeidsrom_smal, 5
9780486449685, math fun and earnest, arbeidsrom_smal, 5
9780486417103, lin prog, arbeidsrom_smal, 5
9780130892393, complex analysis, arbeidsrom_smal, 5
9781292024967, abstract alg, arbeidsrom_smal, 5
9780471728979, kreyzig, arbeidsrom_smal, 5
9781847762399, calc 1, arbeidsrom_smal, 5
9781787267763, calc 1 nome, arbeidsrom_smal, 5
9781787267770, calc 2 nome, arbeidsrom_smal, 5
9780199208258, non lin ode, arbeidsrom_smal, 5
9788251915953, tabeller, arbeidsrom_smal, 5
9780750304009, fractals and chaos, arbeidsrom_smal, 5
9788241902116, geometri, arbeidsrom_smal, 5
9781620402788, simpsons, arbeidsrom_smal, 5
9781846683459, math curiosities, arbeidsrom_smal, 5
9789810245344, fuzzy logic, arbeidsrom_smal, 5
9781429224048, vect calc, arbeidsrom_smal, 5
9780122407611, gambling, arbeidsrom_smal, 5
9788278220054, rottman slitt, arbeidsrom_smal, 5
9780321748232, prob and stat, arbeidsrom_smal, 5
9780387954752, stats with r, arbeidsrom_smal, 5
9781568814421, maths by exp, arbeidsrom_smal, 5

1 isbn note bookcase shelf
2 9780486809038 emily riehl arbeidsrom_smal 5
3 9781568811307 winning ways arbeidsrom_smal 5
4 9780486458731 cardano arbeidsrom_smal 5
5 9780486462394 alg topo arbeidsrom_smal 5
6 9780582447585 formulae arbeidsrom_smal 5
7 9780486466668 theory of numbers arbeidsrom_smal 5
8 9780486462431 conv surf arbeidsrom_smal 5
9 9780486449685 math fun and earnest arbeidsrom_smal 5
10 9780486417103 lin prog arbeidsrom_smal 5
11 9780130892393 complex analysis arbeidsrom_smal 5
12 9781292024967 abstract alg arbeidsrom_smal 5
13 9780471728979 kreyzig arbeidsrom_smal 5
14 9781847762399 calc 1 arbeidsrom_smal 5
15 9781787267763 calc 1 nome arbeidsrom_smal 5
16 9781787267770 calc 2 nome arbeidsrom_smal 5
17 9780199208258 non lin ode arbeidsrom_smal 5
18 9788251915953 tabeller arbeidsrom_smal 5
19 9780750304009 fractals and chaos arbeidsrom_smal 5
20 9788241902116 geometri arbeidsrom_smal 5
21 9781620402788 simpsons arbeidsrom_smal 5
22 9781846683459 math curiosities arbeidsrom_smal 5
23 9789810245344 fuzzy logic arbeidsrom_smal 5
24 9781429224048 vect calc arbeidsrom_smal 5
25 9780122407611 gambling arbeidsrom_smal 5
26 9788278220054 rottman slitt arbeidsrom_smal 5
27 9780321748232 prob and stat arbeidsrom_smal 5
28 9780387954752 stats with r arbeidsrom_smal 5
29 9781568814421 maths by exp arbeidsrom_smal 5

View File

@ -171,27 +171,6 @@ class WorblehatCli(NumberedCmd):
).cmdloop()
def do_show_slabbedasker(self, _: str):
slubberter = self.sql_session.scalars(
select(BookcaseItemBorrowing)
.join(BookcaseItem)
.where(
BookcaseItemBorrowing.end_time < datetime.now(),
BookcaseItemBorrowing.delivered.is_(None),
)
.order_by(
BookcaseItemBorrowing.end_time,
),
).all()
if len(slubberter) == 0:
print('No slubberts found. Yay!')
return
for slubbert in slubberter:
print(f'{slubbert.username} - {slubbert.item.name} - {slubbert.end_time.strftime("%Y-%m-%d")}')
def do_advanced(self, _: str):
AdvancedOptionsCli(self.sql_session).cmdloop()
@ -237,18 +216,14 @@ class WorblehatCli(NumberedCmd):
'doc': 'Show a bookcase, and its items',
},
4: {
'f': do_show_slabbedasker,
'doc': 'Show a slabbedasker, and their wicked ways',
},
5: {
'f': do_save,
'doc': 'Save changes',
},
6: {
5: {
'f': do_abort,
'doc': 'Abort changes',
},
7: {
6: {
'f': do_advanced,
'doc': 'Advanced options',
},