Changeset 620 in tmcsimulator for branches/LCSv2/models/db.py
- Timestamp:
- 07/13/2020 12:23:49 PM (6 years ago)
- File:
-
- 1 edited
-
branches/LCSv2/models/db.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/LCSv2/models/db.py
r619 r620 53 53 db.define_table('supervisors', 54 54 Field('name'), 55 Field('radiocallnum') \55 Field('radiocallnum') 56 56 ) 57 57 db.supervisors.truncate() # delete all records and reset the counter of the id. … … 64 64 db.streets.truncate() 65 65 db.streets.import_from_csv_file(open('streets.csv', 'r')) #import the file 66 67 db.define_table('crew', 68 Field('name'), 69 Field('radiocallnum') 70 ) 71 db.crew.truncate() # delete all records and reset the counter of the id. 72 db.crew.import_from_csv_file(open('crew.csv', 'r')) #import the file
Note: See TracChangeset
for help on using the changeset viewer.
