def get(self): db = DBUtil('Info.db', 'information') data = json.dumps(db.getUsers()) with open('data.json', 'w+') as outfile: json.dump(data, outfile) db.close() self.render('show.html')
def get(self): db = DBUtil('Info.db', 'information') data = json.dumps(db.getUsers()) self.write(data)