updated readme.txt

This commit is contained in:
2026-01-18 19:03:16 -05:00
parent 5ee4da5971
commit 3f311980db
4 changed files with 146 additions and 36 deletions

View File

@@ -98,6 +98,7 @@ class Customer_Description(db.Model):
fill_location = db.Column(db.INTEGER)
description = db.Column(db.VARCHAR(2000))
class Customer_Description_schema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Customer_Description
@@ -122,6 +123,8 @@ class Customer_Tank_Inspection(db.Model):
tank_status = db.Column(db.BOOLEAN)
outside_or_inside = db.Column(db.BOOLEAN)
tank_size = db.Column(db.INTEGER)
tank_images = db.Column(db.Integer, default=0) # 0 = false, 1 = true
tank_image_upload_dates = db.Column(db.JSON, default=list) # List of upload dates for each set

View File

@@ -204,40 +204,40 @@ def create_customer():
else:
the_state = 'MA'
if response_customer_town == 0:
the_town = 'Auburn'
elif response_customer_state == 1:
the_town = 'Charlton'
elif response_customer_state == 2:
the_town = 'Cherry Valley'
elif response_customer_state == 3:
the_town = 'Dudley'
elif response_customer_state == 4:
the_town = 'Grafton'
elif response_customer_state == 5:
the_town = 'Leicester'
elif response_customer_state == 6:
the_town = 'Millbury'
elif response_customer_state == 7:
the_town = 'N Oxford'
elif response_customer_state == 8:
the_town = 'Oxford'
elif response_customer_state == 9:
the_town = 'Rochdale'
elif response_customer_state == 10:
the_town = 'Shrewsbury'
elif response_customer_state == 11:
the_town = 'Southbridge'
elif response_customer_state == 12:
the_town = 'Spencer'
elif response_customer_state == 13:
the_town = 'Sturbridge'
elif response_customer_state == 14:
the_town = 'Webster'
elif response_customer_state == 15:
the_town = 'Worcester'
else:
the_town = 'NA'
# if response_customer_town == 0:
# the_town = 'Auburn'
# elif response_customer_town == 1:
# the_town = 'Charlton'
# elif response_customer_town == 2:
# the_town = 'Cherry Valley'
# elif response_customer_town == 3:
# the_town = 'Dudley'
# elif response_customer_town == 4:
# the_town = 'Grafton'
# elif response_customer_town == 5:
# the_town = 'Leicester'
# elif response_customer_town == 6:
# the_town = 'Millbury'
# elif response_customer_town == 7:
# the_town = 'N Oxford'
# elif response_customer_town == 8:
# the_town = 'Oxford'
# elif response_customer_town == 9:
# the_town = 'Rochdale'
# elif response_customer_town == 10:
# the_town = 'Shrewsbury'
# elif response_customer_town == 11:
# the_town = 'Southbridge'
# elif response_customer_town == 12:
# the_town = 'Spencer'
# elif response_customer_town == 13:
# the_town = 'Sturbridge'
# elif response_customer_town == 14:
# the_town = 'Webster'
# elif response_customer_town == 15:
# the_town = 'Worcester'
# else:
# the_town = 'NA'
geolocator = Nominatim(user_agent="auburnoil")