def third_computer(id): dbwrapper = db_queries.DBWrapper(session['type']) concdevices = dbwrapper.concdevices_by_device_id(id) big_pretty_comp = pretty_data.big_computer(id, dbwrapper) small_pretty_comp = pretty_data.small_devices([id], [0], dbwrapper)[0] return render_template('Comp.html', big_comp=big_pretty_comp, small_comp=small_pretty_comp, conccomps=concdevices)
def third_computer(id, dss): dbwrapper = db_queries.DBWrapper("computer") concdevices = dbwrapper.concdevices_by_device_id(id) big_pretty_comp = pretty_data.big_computer(id, dbwrapper) small_pretty_comp = pretty_data.small_devices([id], [float(dss)], dbwrapper)[0] return render_template('Comp.html', big_comp=big_pretty_comp, small_comp=small_pretty_comp, tooltips=TOOLTIPS_DICT, conccomps=concdevices, prom=PROM)
def third_computer(id, dss): dbwrapper = db_queries.DBWrapper("computer") concdevices = dbwrapper.concdevices_by_device_id(id) big_pretty_comp = pretty_data.big_computer(id, dbwrapper) small_pretty_comp = pretty_data.small_devices([id], [float(dss)], dbwrapper)[0] return render_template( "Comp.html", big_comp=big_pretty_comp, small_comp=small_pretty_comp, tooltips=TOOLTIPS_DICT, conccomps=concdevices, prom=PROM, )