ActivityWatch / ActivityWatch/aw-core

Creating new table in peewee database

Open
#68 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
65
Forks
72
Avg merge
2d 3h
Merged PRs (30d)
5

Description

I've created a new table in the peewee.py file. I've tried both make build and make install in aw-core, yet it doesn't seem like the peewee file ever runs the code. I've looked into the source code and couldn't find when the PeeweeStorage was initialized. Any idea on how to get the file to run manually?

Code below:

if not BucketModel.table_exists():
BucketModel.create_table()
if not EventModel.table_exists():
EventModel.create_table()
if not TestModel.table_exists():
TestModel.create_table()
self.update_bucket_keys()

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.