ActivityWatch / ActivityWatch/aw-core

Creating new table in peewee database

未关闭
#68 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
65
派生
72
平均合并
2 天 3 小时
30 天内合并 PR
5

描述

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()

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。