ActivityWatch / ActivityWatch/aw-core

Creating new table in peewee database

Aberta
#68 8 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
65
Forks
72
Merge médio
2d 3h
PRs com merge (30d)
5

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.