Changeset 9669 for src/django_gheat


Ignore:
Timestamp:
Sep 6, 2011, 1:21:35 PM (13 years ago)
Author:
rick
Message:

Sometimes I just _want_ to include the file. No questions asked.

File:
1 edited

Legend:

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

    r9640 r9669  
    2626
    2727
    28 valid_prefixes = ['DroidStumbler-', 'Kismet-','ScanResult-']
     28valid_prefixes = ['DroidStumbler-', 'Kismet-EeePC-', 'Kismet-', 'ScanResult-']
    2929def strip_prefix(filename):
    3030  """ Prefix removal """
     
    6767    make_option('-k', '--kaart', dest='kaart', default='onbekend',
    6868      help="Kaart gebruikt"),
     69    make_option('-f', '--force', dest='force', default=False, action="store_true",
     70      help="Import anyways, even if the meetrondje is already imported"),
    6971    make_option('-m', '--meetrondje', dest='meetrondje', default=None),
    7072    make_option('-g', '--gebruiker', dest='gebruiker', default='username',
     
    127129        datum=get_date(filename), naam=get_meetrondje(filename),
    128130        gebruiker=gebruiker, apparatuur=apparatuur)
    129       if not created:
     131      if not options['force'] and not created:
    130132        logger.error("Meetrondje '%s' already imported",  meetrondje)
    131133        continue
Note: See TracChangeset for help on using the changeset viewer.