Added fee class
This commit is contained in:
parent
437a71ff59
commit
9955c65c0a
16
otime.py
16
otime.py
@ -289,6 +289,16 @@ class Runner:
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
self.start_time = None
|
self.start_time = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.fee_str = kwargs['fee_str']
|
||||||
|
except KeyError:
|
||||||
|
self.fee_str = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.fee = kwargs['fee']
|
||||||
|
except KeyError:
|
||||||
|
self.fee = None
|
||||||
|
|
||||||
#self.o_class = o_class
|
#self.o_class = o_class
|
||||||
#self.start_time = start_time
|
#self.start_time = start_time
|
||||||
|
|
||||||
@ -564,6 +574,12 @@ class OClass:
|
|||||||
'course_str': self.course_str
|
'course_str': self.course_str
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class Fee:
|
||||||
|
def __init__(self, fee_id, name, currency, amount):
|
||||||
|
self.id = fee_id
|
||||||
|
self.currency = currency
|
||||||
|
self.amount = amount
|
||||||
|
|
||||||
# TODO: Take string instead of file.
|
# TODO: Take string instead of file.
|
||||||
def courses_from_ttime_conf(ttime_file):
|
def courses_from_ttime_conf(ttime_file):
|
||||||
courses = []
|
courses = []
|
||||||
|
Loading…
Reference in New Issue
Block a user