Hi,
what does is the meaning of this error: int object is unsubscriptable .
This is the code that I have written that seems to give me that:
def render_sideMenu (self, ctx, data):
def render_dataAge( unit):
results = [(i[0], i[1]
) for i in unit]
return self.dataTable(["Unit Name", "Current Data Age"],
results, sortable=True),
return
self.enamel.,st orage.getDataAg e(int(self.argu ments[0])).addCallback( render_dataAge)
what does is the meaning of this error: int object is unsubscriptable .
This is the code that I have written that seems to give me that:
def render_sideMenu (self, ctx, data):
def render_dataAge( unit):
results = [(i[0], i[1]
) for i in unit]
return self.dataTable(["Unit Name", "Current Data Age"],
results, sortable=True),
return
self.enamel.,st orage.getDataAg e(int(self.argu ments[0])).addCallback( render_dataAge)
Comment