return clist



if __name__ == "__main__":

    at = AnnualTemperature()
    data = at.openfile('lab1\Temperature.html')
    dt = Database()
    dt.createTable()
    for items in data:
        if len(items) > 0 and int(items[0]) > 1959 and int(items[0]) < 2019):
            print(items)
        # dt.create(items[0],items[2])
   
    graph = Graph()
    data = dt.get_all()
    x = []
    y = []

    for row in data:
        x.append(row[0])
        y.append(row[1])

    graph.thread_read(x, y)

    dt.delete_all_rows()
        
        

                
Exemplo n.º 2
0
 def get_data(self):
     database = Database()
     data = database.get_all()
     for key, value in data:
         self.sorted_data[key] = value
     return self.sorted_data