ActivityWatch / ActivityWatch/aw-core

Creating new table in peewee database

Abierto
#68 8 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
65
Forks
72
Merge medio
2 d 3 h
PR fusionados (30 d)
5

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.