Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christopher M Reffett
whats-open
Commits
07289d34
Commit
07289d34
authored
Oct 13, 2013
by
Renfred Harper
Browse files
Add restaurant location attribute data to api model
parent
2b120624
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/api.py
View file @
07289d34
...
@@ -10,7 +10,11 @@ def export_data():
...
@@ -10,7 +10,11 @@ def export_data():
flags
=
re
.
IGNORECASE
))
flags
=
re
.
IGNORECASE
))
for
restaurant
in
alphalist
:
for
restaurant
in
alphalist
:
restaurant_data
=
{
'name'
:
restaurant
.
name
,
'id'
:
restaurant
.
id
}
restaurant_data
=
{
'name'
:
restaurant
.
name
,
'location'
:
restaurant
.
location
,
'id'
:
restaurant
.
id
}
open_times
=
list
()
open_times
=
list
()
for
time
in
restaurant
.
main_schedule
.
open_times
.
all
():
for
time
in
restaurant
.
main_schedule
.
open_times
.
all
():
open_times
.
append
({
open_times
.
append
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment