Changeset 620 in tmcsimulator for branches/LCSv2/models/db.py


Ignore:
Timestamp:
07/13/2020 12:23:49 PM (6 years ago)
Author:
jdalbey
Message:

Implement #248 to enhance LCS Request page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LCSv2/models/db.py

    r619 r620  
    5353db.define_table('supervisors', 
    5454                Field('name'), 
    55                 Field('radiocallnum')\ 
     55                Field('radiocallnum') 
    5656                ) 
    5757db.supervisors.truncate() # delete all records and reset the counter of the id. 
     
    6464db.streets.truncate() 
    6565db.streets.import_from_csv_file(open('streets.csv', 'r')) #import the file 
     66 
     67db.define_table('crew', 
     68                Field('name'), 
     69                Field('radiocallnum') 
     70                ) 
     71db.crew.truncate() # delete all records and reset the counter of the id. 
     72db.crew.import_from_csv_file(open('crew.csv', 'r')) #import the file 
Note: See TracChangeset for help on using the changeset viewer.