Habit Tracker — Devlog #1Today I started building the backend for my habit tracker.I’m currently working on the database system using Python and SQLite. I created a database called habits.db where the app will store habits and their completion history.I also started building the database class to handle things like adding habits and logging when a habit is completed. The database uses two main concepts: habits and completion logs. Each completion log is connected to a specific habit using a foreign key.I also added a rule to prevent the same habit from being marked as completed multiple times on the same day.Right now, I’m working on the log_habit() function. Once that is finished, I’ll move on to retrieving the data and calculating things like streaks and progress.Next up: Finish the habit logging system and start connecting the backend to the user interface.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.