update : 11.03.2025 16:46:25,23
This commit is contained in:
parent
50e800c6d6
commit
b32048e45a
@ -515,7 +515,6 @@ def load_edds():
|
||||
cursor = mssql.executeSQL(conn, SQL_QUERY)
|
||||
records = cursor.fetchall()
|
||||
for data in records:
|
||||
print(data)
|
||||
element = Equipment.objects.filter(uid=data[0]).first()
|
||||
name = "" if data[1] is None else data[1]
|
||||
garagenum = "" if data[1] is None else data[1]
|
||||
@ -537,7 +536,6 @@ def load_edds():
|
||||
cursor = mssql.executeSQL(conn, SQL_QUERY)
|
||||
cursor_row = cursor.fetchall()
|
||||
for data in cursor_row:
|
||||
print(data)
|
||||
element = Equipment.objects.filter(uid=data[0]).first()
|
||||
time = data[2] + timedelta(hours=7)
|
||||
lat = 0 if data[3] is None else data[3]
|
||||
|
||||
4
start.py
4
start.py
@ -239,7 +239,7 @@ def test_edds():
|
||||
cursor = mssql.executeSQL(conn, SQL_QUERY)
|
||||
cursor_row = cursor.fetchall()
|
||||
for data in cursor_row:
|
||||
print(data)
|
||||
print(data)
|
||||
element = Equipment.objects.filter(uid=data[0]).first()
|
||||
time = data[2] + timedelta(hours=7)
|
||||
lat = 0 if data[3] is None else data[3]
|
||||
@ -288,8 +288,6 @@ def test_edds():
|
||||
sensor_time=time,
|
||||
sensor_value=alt,
|
||||
)
|
||||
|
||||
|
||||
cursor.close()
|
||||
conn.close()
|
||||
return None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user