jxing 5 lat temu
rodzic
commit
4cf7263d07
1 zmienionych plików z 6 dodań i 4 usunięć
  1. 6 4
      src/grid/test.py

+ 6 - 4
src/grid/test.py

@@ -44,8 +44,8 @@ def get_data(sql):
         connection = psycopg2.connect(
             database='datacenter',
             user='postgres',
-            password='123456',
-            host='192.168.20.234',
+            password='123qwe!@#',
+            host='47.94.89.44',
             port='5432'
         )
         cursor = connection.cursor()
@@ -73,8 +73,8 @@ def loads_curve(x):
 
 if __name__ == '__main__':
 
-    involved_model_sql = "select * from revit.model_floor_file_func('Pj1101010015') where folder_id = " \
-                         "'bbe510dbe26011e999b69b669ea08505' and status in (3, 31, 4) "
+    involved_model_sql = "select * from revit.model_floor_file_func('Pj1101080256') where folder_id = " \
+                         "'1a65561d6f1011eab562336eb2f6bdfd' and status in (3, 31, 4) "
     grid_sql = "select * from revit.grid where model_id = "
     columns_data = get_data(involved_model_sql)
 
@@ -89,4 +89,6 @@ if __name__ == '__main__':
         grid_data[item.get('fid')] = single_model_grid
 
     print(check_grid_upright(model_list, grid_data))
+    print(grid_data)
+    print(model_list)