-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseed.py
More file actions
29 lines (25 loc) · 2.58 KB
/
seed.py
File metadata and controls
29 lines (25 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from seed_function import UserProfile, Item, Like
def seed_data():
nancy = UserProfile(user_id = "nancy", first_name = 'Nancy', last_name = 'Sarabia', email = 'nanccysarabiaa12@gmail.com').put()
xoshil = UserProfile(user_id = "xoshil", first_name = 'Xoshil', last_name = 'Chen-Marquez', email = 'xoshilcm@gmail.com').put()
aston = UserProfile(user_id = "aston", first_name = 'Aston', last_name = 'Yong', email = 'astontyong@gmail.com').put()
nancy_item1 = Item(img_url = 'https://bigboze.com/wp-content/uploads/2017/08/Vintage-90s-Bootleg-Selena-T-Shirt.jpg', description = 'Vintage Selena T-Shirt, Size: Small', owner = nancy)
xoshil_item1 = Item(img_url = 'https://auctions.c.yimg.jp/images.auctions.yahoo.co.jp/image/dr000/auc0407/users/20489ec3f1aed236c91063314c14ec48936aab30/i-img1200x842-1530700458efjyqp6130.jpg', description = 'Converse All Star Black Plaid, Size: US-7', owner = xoshil)
item1 = Item(img_url = 'https://di2ponv0v5otw.cloudfront.net/posts/2019/05/01/5cc992fb689ebcecea8359c7/m_5cc9930c7f617f8c7af77091.jpg', description = 'Adidas Track Pants, Size: Medium', owner = nancy)
item2 = Item(img_url = 'http://images.backstreetmerch.com/images/products/bands/clothing/quee/bsi_quee181.jpg', description = 'Queen T-Shirt, Size: Large', owner = nancy)
item3 = Item(img_url = 'https://dtpmhvbsmffsz.cloudfront.net/posts/2017/12/09/5a2c3857f0137d5191019f24/m_5a2c3931291a3528c701af41.jpg', description = 'Silver Necklace', owner = nancy)
item4 = Item(img_url = 'https://img.letgo.com/images/dc/b4/e0/37/dcb4e0375cea7cdca2edd7c3c8bd6495.jpg?impolicy=img_600', description = 'Louis Vuitton Purse', owner = nancy)
item5 = Item(img_url = 'https://dtpmhvbsmffsz.cloudfront.net/posts/2017/06/08/5939bad8291a352793043994/m_5939bad8291a352793043995.jpg', description = 'Levis Denim Jacket with fur collar, Size: Large', owner = nancy)
item6 = Item(img_url = 'https://di2ponv0v5otw.cloudfront.net/posts/2018/09/24/5ba9b2322e147837eb53d2ac/m_5ba9b248f63eeae310aca8ab.jpg', description = 'Nike pink and black running shoes, Size: 8', owner = nancy)
item7 = Item(img_url = 'https://i.etsystatic.com/8361046/c/2575/2045/335/43/il/d2b9c1/1884731634/il_340x270.1884731634_k5s9.jpg', description = 'Peach-colored knee-length shorts, Size: Small', owner = nancy)
nancy_item1.put()
xoshil_item1.put()
item1.put()
item2.put()
item3.put()
item4.put()
item5.put()
item6.put()
item7.put()
# xoshil_like1 = Like(liker = xoshil, item = nancy_item1.key, owner = nancy).put()
# aston_like1 = Like(liker = aston, item = nancy_item1.key, owner = nancy).put()