This commit is contained in:
Alexis Lahouze
2017-05-19 16:58:20 +02:00
parent 6c3f73cd75
commit 01a509d348
4 changed files with 7 additions and 12 deletions

View File

@ -6,16 +6,16 @@ from calendar import monthrange
import arrow
# pylint: disable=no-member,too-few-public-methods,too-many-instance-attributes
from . import db
from .accounts import Account
from .operations import Operation
# pylint: disable=no-member,invalid-name,too-many-arguments
# pylint: disable=too-few-public-methods,too-many-instance-attributes
class ScheduledOperation(db.Model):
"""Class used to handle scheduled operations."""
# pylint: disable=invalid-name
id = db.Column(db.Integer, primary_key=True)
start_date = db.Column(db.Date, nullable=False)
@ -39,7 +39,6 @@ class ScheduledOperation(db.Model):
backref=db.backref('scheduled_operation', lazy="dynamic")
)
# pylint: disable=too-many-arguments
def __init__(self, start_date, stop_date, day, frequency, label, value,
account_id, category=None):
self.start_date = start_date