Changeset 9669 for src/django_gheat
- Timestamp:
- Sep 6, 2011, 1:21:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/management/commands/import_datafile.py
r9640 r9669 26 26 27 27 28 valid_prefixes = ['DroidStumbler-', 'Kismet- ','ScanResult-']28 valid_prefixes = ['DroidStumbler-', 'Kismet-EeePC-', 'Kismet-', 'ScanResult-'] 29 29 def strip_prefix(filename): 30 30 """ Prefix removal """ … … 67 67 make_option('-k', '--kaart', dest='kaart', default='onbekend', 68 68 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"), 69 71 make_option('-m', '--meetrondje', dest='meetrondje', default=None), 70 72 make_option('-g', '--gebruiker', dest='gebruiker', default='username', … … 127 129 datum=get_date(filename), naam=get_meetrondje(filename), 128 130 gebruiker=gebruiker, apparatuur=apparatuur) 129 if not created:131 if not options['force'] and not created: 130 132 logger.error("Meetrondje '%s' already imported", meetrondje) 131 133 continue
Note:
See TracChangeset
for help on using the changeset viewer.