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

Conversation

JesseWilliamson
Copy link
Contributor

Summary

  • Replace tables with list-based responses
  • Add summary of work to logs
  • Improve structure of slack blocks module
  • Add date constraints to admin commands
  • Add yearly and weekly summary for /getentries
  • Improve error handling

I think the tables were much more readable. It wouldn't be too difficult to add them back as a user preference (just a bool attribute in the user table) but maybe that's just extra complexity we don't need.

image

phone-list

phone-list

phone-list

… fixed responses giving the wrong information
@JesseWilliamson
Copy link
Contributor Author

JesseWilliamson commented Nov 14, 2022

For this to be updated changes need to be made to the database. This script would do that, but it might be worth putting this off until after the reminders get added.

import sqlite3
con = sqlite3.connect("timelord.db")
con.cursor().execute("ALTER TABLE time_log RENAME COLUMN project TO summary;")
con.cursor().execute("DELETE FROM time_log WHERE selected_date < '2022-10-22';")
con.commit()
con.close()

README.md Outdated Show resolved Hide resolved
app.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants