Ignore:
Timestamp:
Aug 16, 2012, 9:00:50 PM (12 years ago)
Author:
rick
Message:

Re-install of heatmap on other server with Django 1.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/dataimport/__init__.py

    r9819 r11406  
    6464  global organizations
    6565  if not organizations:
    66    organizations = dict(Organization.objects.all().values_list('name','id'))
     66    organizations = dict(Organization.objects.all().values_list('name','id'))
    6767 
    6868  name = Organization.get_name_by_ssid(ssid)
    69   if not name:
    70     return 'NULL'
     69  if not organizations.has_key(name):
     70    return None
    7171  else:
    72     return int(organizations[name])
     72    return str(organizations[name])
    7373
    7474
Note: See TracChangeset for help on using the changeset viewer.