Beispiel #1
0
    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')
Beispiel #2
0
 def get(self):
     db = DBUtil('Info.db', 'information')
     data = json.dumps(db.getUsers())
     self.write(data)