Commit 60c22730 authored by Ziirish's avatar Ziirish

increase task detail in __repr__

parent 07193f58
......@@ -32,7 +32,9 @@ class Task(db.Model):
self.expire = datetime.datetime.utcnow() + expire
def __repr__(self):
return '<Task {} ({})>'.format(self.task, self.uuid)
return '<Task {}-{} ({}, {}/{})>'.format(self.task, self.uuid,
self.user, self.timestamp,
self.expire)
class Session(db.Model):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment