Conversion tool is near from complete. Use Peewee as ORM

This commit is contained in:
Yax
2015-05-01 18:57:17 +02:00
parent b38d47228a
commit 7b5c0822ff
7 changed files with 140 additions and 19 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/python
# -*- coding: UTF-8 -*-
from peewee import Model
from peewee import CharField
from app.services.database import get_db
class Site(Model):
name = CharField(unique=True)
url = CharField()
token = CharField()
class Meta:
database = get_db()