Changeset 620 in tmcsimulator for branches/LCSv2/models/db.py.bak
- Timestamp:
- 07/13/2020 12:23:49 PM (6 years ago)
- File:
-
- 1 edited
-
branches/LCSv2/models/db.py.bak (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/LCSv2/models/db.py.bak
r619 r620 7 7 Field('direction'), 8 8 Field('facility'), 9 Field('startdate', length=8, comment="Must be stored as YYYYMMDD"),10 Field('enddate', length=8, comment="Must be stored as YYYYMMDD"),9 Field('startdate','date', comment="Must be stored as YYYY-MM-DD"), 10 Field('enddate','date', comment="Must be stored as YYYY-MM-DD"), 11 11 Field('starttime',length=4, comment="Must be stored as HHMM"), 12 12 Field('endtime',length=4, comment="Must be stored as HHMM"), … … 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.supervisors.truncate() # delete all records and reset the counter of the id. 72 db.supervisors.import_from_csv_file(open('crew.csv', 'r')) #import the file
Note: See TracChangeset
for help on using the changeset viewer.
