Ignore:
Timestamp:
Aug 28, 2011, 3:34:24 PM (13 years ago)
Author:
rick
Message:

Only quote after all fields has been included.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/management/commands/import_nodes.py

    r9593 r9597  
    6464
    6565      node, created = Node.objects.get_or_create(name=host)
    66       if created:
    67         logger.info("Created Node '%s'", node)
    6866      node.latitude = items['latitude']
    6967      node.longitude = items['longitude']
    7068      node.organization = org
    7169      node.save()
     70      if created:
     71        logger.info("Created Node '%s'", node)
    7272    logger.info("Processed %s items", len(hosts))
    7373
Note: See TracChangeset for help on using the changeset viewer.