Changeset 9597 for src/django_gheat/gheat/management
- Timestamp:
- Aug 28, 2011, 3:34:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/management/commands/import_nodes.py
r9593 r9597 64 64 65 65 node, created = Node.objects.get_or_create(name=host) 66 if created:67 logger.info("Created Node '%s'", node)68 66 node.latitude = items['latitude'] 69 67 node.longitude = items['longitude'] 70 68 node.organization = org 71 69 node.save() 70 if created: 71 logger.info("Created Node '%s'", node) 72 72 logger.info("Processed %s items", len(hosts)) 73 73
Note:
See TracChangeset
for help on using the changeset viewer.