more data added. Stops is done..

This commit is contained in:
Johnson Chetty 2011-12-10 06:18:06 +05:30
parent d087f408c4
commit 95e8de70eb
3 changed files with 1626 additions and 5 deletions

Binary file not shown.

View File

@ -45,10 +45,10 @@ for entry in CsvFile:
CsvFile = csv.reader(open("/home/johnson/Desktop/chaloBEST/db_csv_files/Stop.csv", "r"), delimiter='\t')
test = CsvFile.next() test = CsvFile.next()
print test print test
CsvFile = csv.reader(open("/home/johnson/Desktop/chaloBEST/chaloBEST/db_csv_files/Stop.csv", "r"), delimiter='\t')
for entry in CsvFile: for entry in CsvFile:
obj = Stop(stopcd=int(entry[0]), stopnm=str(entry[1]), stopfl=str(entry[2]), chowki=(entry[3]).startswith('TRUE'), roadcd=Road.objects.get(roadcd=int(entry[4])), a_code=Area.objects.get(a_code=int(entry[5])), depot=str(entry[6]) ) obj = Stop(stopcd=int(entry[0]), stopnm=str(entry[1]), stopfl=str(entry[2]), chowki=(entry[3]).startswith('TRUE'), roadcd=Road.objects.get(roadcd=int(entry[4])), a_code=Area.objects.get(a_code=int(entry[5])), depot=str(entry[6]) )
obj.save() obj.save()
@ -65,8 +65,25 @@ for entry in CsvFile:
StopMaster
2312 OM NGR.(WARE HOUSE) 0 0 3 MLD
changed to
2312 OM NGR.(WARE HOUSE) 0 29 3 MLD
3899 DAVA BAZAR(KALBADEVI) 0 641 0 CD
changed to
3899 DAVA BAZAR(KALBADEVI) 0 641 150 CD
4379 CRISIL HOUSE U 0 229 0 VKD
changed to
4379 CRISIL HOUSE U 0 229 118 VKD
4551 SAFED POOL U 0 374 0 KLD
changed to
4551 SAFED POOL U 0 374 170 KLD

File diff suppressed because it is too large Load Diff