Commit dbcd1d48 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Call the init of super class in File

parent 06a10a02
Pipeline #15112 passed with stages
in 6 minutes and 7 seconds
......@@ -13,7 +13,7 @@ class File(object):
def __init__(self, path, file_id=None):
def __init__(self, path, file_id=None, **kwargs):
"""**Constructor Documentation**
Initialize the File object with the minimum required data.
......@@ -53,6 +53,8 @@ class File(object):
"'id' member variable in the derived class that is automatically "
"determined (e.g. by SQLite)")
super(File, self).__init__(**kwargs)
def __lt__(self, other):
"""This function defines the order on the File objects. File objects are
always ordered by their ID, in ascending order."""
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment