update : 26.05.2025 15:28:52,07
This commit is contained in:
parent
1e0213a49f
commit
541e06eec3
@ -3,7 +3,6 @@ from django.db import models
|
||||
from django.urls import \
|
||||
reverse # Used to generate URLs by reversing the URL patterns
|
||||
|
||||
from apps.gto.models.model_equipment import Equipment
|
||||
from apps.gto.models.model_sensors import Sensors
|
||||
|
||||
|
||||
|
||||
@ -3,9 +3,6 @@ from django.db import models
|
||||
from django.urls import \
|
||||
reverse # Used to generate URLs by reversing the URL patterns
|
||||
|
||||
from apps.gto.models.model_equipment import Equipment
|
||||
|
||||
|
||||
class GtoPolygon(models.Model): # Полигоны
|
||||
|
||||
name = models.CharField(
|
||||
|
||||
15
start.py
15
start.py
@ -37,6 +37,7 @@ from django.db.models import Q
|
||||
|
||||
import apps.schedulers.tasks
|
||||
from apps.gto.models.model_equipment import Equipment
|
||||
from apps.gto.models.model_alarm import GtoAlarm
|
||||
from apps.gto.models.model_indicators import Indicators
|
||||
from apps.gto.models.model_sensors import Sensors
|
||||
from apps.gto.models.model_tracking import EquipmentTracking
|
||||
@ -198,8 +199,15 @@ def test_hdd():
|
||||
model = fields[15].strip()
|
||||
print("Hard Disk Model: %s" % model)
|
||||
print(" Serial Number: %s" % serial_no)
|
||||
|
||||
|
||||
|
||||
def error_eq():
|
||||
equipment_list = Equipment.objects.all()
|
||||
for equipment in equipment_list:
|
||||
print(f'{equipment.id} , {equipment.uid} , {equipment}')
|
||||
#.objects.filter(name=name).first()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
#test_sysinfo()
|
||||
#print('-------------------------------------------------')
|
||||
@ -209,8 +217,9 @@ if __name__ == "__main__":
|
||||
|
||||
#test_hdd()
|
||||
#print(settings.BASE_DIR)
|
||||
print(os.stat(settings.BASE_DIR+'/manage.py').st_ino, 'manage.py')
|
||||
#print(os.stat(settings.BASE_DIR+'/manage.py').st_ino, 'manage.py')
|
||||
#import glob
|
||||
#import os
|
||||
#or filename in glob.glob('*.py'):
|
||||
# print(os.stat(filename).st_ino, filename)
|
||||
# print(os.stat(filename).st_ino, filename)
|
||||
error_eq()
|
||||
Loading…
x
Reference in New Issue
Block a user