Skip to content

Commit 5ca3889

Browse files
committed
Whitespace issues
1 parent 84c36e0 commit 5ca3889

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

azureproject/production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SECRET_KEY = os.getenv('SECRET_KEY', 'flask-insecure-7ppocbnx@w71dcuinn*t^_mzal(t@o01v3fee27g%rg18fc5d@')
55

66
ALLOWED_HOSTS = [os.environ['WEBSITE_HOSTNAME']] if 'WEBSITE_HOSTNAME' in os.environ else []
7-
CSRF_TRUSTED_ORIGINS = ['https://'+ os.environ['WEBSITE_HOSTNAME']] if 'WEBSITE_HOSTNAME' in os.environ else []
7+
CSRF_TRUSTED_ORIGINS = ['https://' + os.environ['WEBSITE_HOSTNAME']] if 'WEBSITE_HOSTNAME' in os.environ else []
88

99
# Configure Postgres database; the full username for PostgreSQL flexible server is
1010
# username (not @sever-name).

models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Restaurant(db.Model):
1010
name = Column(String(50))
1111
street_address = Column(String(50))
1212
description = Column(String(250))
13+
1314
def __str__(self):
1415
return self.name
1516

@@ -28,4 +29,4 @@ def validate_rating(self, key, value):
2829
return value
2930

3031
def __str__(self):
31-
return self.restaurant.name + " (" + self.review_date.strftime("%x") +")"
32+
return self.restaurant.name + " (" + self.review_date.strftime("%x") + ")"

0 commit comments

Comments
 (0)