Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace tables with list-based responses, improve user interface and error handling, add summary of work to logs #13

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
645a6cf
Added date constraint function
JesseWilliamson Nov 3, 2022
4722050
Add parse date constraint function and update get_user_tables block
JesseWilliamson Nov 3, 2022
ae105d9
Fully implemented date constraint for getusertables
JesseWilliamson Nov 3, 2022
64e2e92
Added date overview and begun extending leaderboard functionality
JesseWilliamson Nov 5, 2022
fcd6aa1
Divided blocks into smaller functions and variables
JesseWilliamson Nov 5, 2022
08f3419
Merge branch 'user-name-log' into date-range-dropdowns
JesseWilliamson Nov 5, 2022
61e3d4f
Add time restriction for leaderboard command
JesseWilliamson Nov 7, 2022
8b2c553
Fixed leaderboard date constraint by requiring string dates
JesseWilliamson Nov 7, 2022
efee742
Removed num_users constraint from leaderboard and removed redundant c…
JesseWilliamson Nov 8, 2022
9597202
Move date object format to string to the database query code section …
JesseWilliamson Nov 8, 2022
b132197
Removed unnecessary date constraints for table retrieval
JesseWilliamson Nov 8, 2022
5466ca5
Add weekly and yearly summary to gethours output for users
JesseWilliamson Nov 8, 2022
c039f97
Merge branch 'main' into date-range-dropdowns
JesseWilliamson Nov 8, 2022
00d86a1
show date constraint in leaderboard output
JesseWilliamson Nov 10, 2022
05c2f84
update date_constraint_input action handler to work with name change
JesseWilliamson Nov 10, 2022
5129981
Replace table output with lists and improve command structure
JesseWilliamson Nov 11, 2022
610bc51
Improved error handling and corrected time constraint in leaderboard …
JesseWilliamson Nov 14, 2022
7aabaa6
Improved error handling for all commands with forms
JesseWilliamson Nov 14, 2022
6f83526
Improve error handling for commands without forms
JesseWilliamson Nov 14, 2022
7bd1b53
fixed problem with errors not exiting function, updated help command,…
JesseWilliamson Nov 14, 2022
7411345
Fixed weekly summary for /myentries and standardized date / string co…
JesseWilliamson Nov 14, 2022
0664355
Update command lists to match changes
JesseWilliamson Nov 14, 2022
42af056
Removed now unnecessary package imports and version requirements
JesseWilliamson Nov 15, 2022
2a09347
Removed unused date constraint dropdown block
JesseWilliamson Nov 17, 2022
e5bfc9e
General readability improvements, changed standard date input format …
JesseWilliamson Nov 17, 2022
2af38ce
Add row_factory to sqlite cursor to improve readability
JesseWilliamson Nov 18, 2022
2912b95
Update leaderboard response function to use dictionary key for readab…
JesseWilliamson Nov 18, 2022
1364ed3
Fix invalid syntax
JesseWilliamson Nov 18, 2022
ddc0d68
Fixed invalid key and ordered /lastentries by date
JesseWilliamson Nov 18, 2022
d04e127
Removed unnecessary parentheses
JesseWilliamson Nov 18, 2022
298ee56
Remove nested try statement and unnecessary quotation marks in readme
JesseWilliamson Dec 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@ Run app.py to launch Timelord

#### User Commands:
- `/help` Get this list of commands
- `/timelog` Opens a time logging form
- `/timelog` Open a time logging form
- `/deletelast` Delete your last entry
- `/myentries n` Get a table with your last n entries (defaults to 5)
- `/myentries n` Get your last n entries (defaults to 5)"""

#### Admin Commands:
- `/gethours` Select users and get their total hours logged
- `/allusersums` Get the total hours logged by all users
- `/getusertables` Select users to see their last few entries
- `/allusertable` Responds with the last 30 entries from all users
- `/leaderboard n` Responds with the top n contributors and their total time logged (defaults to 10)
- `/timelog` Open a time logging form
- `/deletelast` Delete your last entry
- `/myentries n` Get your last n entries (defaults to 30)"""
- `/gethours` Select users and see their total hours logged
- `/getentries` Select users and see their most recent entries
- `/lastentries n` See the last n entries from all users in one list (defaults to 30)
- `/leaderboard` Select a date range and rank all users by hours logged in that range
- `/dateoverview` See all entries for a given date"""

## Autostart
Change the paths in `timelord.service` to match where you have put it, then copy `timelord.serivce` into
`/etc/systemd/system` and finally run `sudo systemctl enable timelord` and `sudo systemctl start timelord`.
Use `sudo systemctl status timelord` to view the program's status.

Loading