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


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.bak

    r619 r620  
    77                Field('direction'), 
    88                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"), 
    1111                Field('starttime',length=4, comment="Must be stored as HHMM"), 
    1212                Field('endtime',length=4, comment="Must be stored as HHMM"), 
     
    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.supervisors.truncate() # delete all records and reset the counter of the id. 
     72db.supervisors.import_from_csv_file(open('crew.csv', 'r')) #import the file 
Note: See TracChangeset for help on using the changeset viewer.