Age | Commit message (Collapse) | Author |
|
UmbrellaNotFoundError: serial
UmbrellaValueError: field
|
|
|
|
|
|
|
|
Major:
- New update(umb) method as an interface to _update(umb), with
convenience and safeguards.
Minor:
- New exception: UmbrellaValueError
- All datetime objects are cast naive
- Database._write(umbrellas) raises exception after performing recovery
- human_datetime includes seconds in output
|
|
If there are no umbrellas that are overdue in the database, the behavior
was to omit them from the returned dict. Now their values are [].
Also, small comment fix.
|
|
|
|
|
|
Namely, Database.take_away and Database.give_back
"date" is an instance of datetime.datatime
|
|
|
|
|
|
Lists all umbrellas in a table.
|
|
It may not be a good idea to scatter database utilities around utils.py.
With this in mind, I moved them to database.py as static methods under
the class Database.
|
|
Is a lockfile named "$DATABASE_NAME.lock". `Database._write()` prevents
race conditions by enforcing the lock, and waiting until a previous lock
is released.
|
|
Define database format. Implement basic I/O operations and take_away /
give_back methods.
|