From f5dcf75075c013bbfdf9cdb6716afee777620c73 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 22 Apr 2017 14:06:35 +0200 Subject: Added upload API. Also updated the API (previously help) page. --- fbin/db.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fbin/db.py') diff --git a/fbin/db.py b/fbin/db.py index dfe3b17..5323134 100644 --- a/fbin/db.py +++ b/fbin/db.py @@ -1,4 +1,5 @@ from contextlib import contextmanager +import datetime import mimetypes import os @@ -20,6 +21,7 @@ class User(Base): id = Column(Integer, primary_key = True) username = Column(String, unique = True, index = True) jab_id = Column(String(24), unique = True, index = True) + api_key_date = Column(DateTime, default = datetime.datetime.utcnow) files = relation('File', backref = 'user', order_by = 'File.date.desc()') def __init__(self, username, jab_id): -- cgit v1.2.3