Skip to content

Commit 8891d5e

Browse files
committed
Removing superfulous commas from the list dictionaries in README and data.py
1 parent 84b7f7a commit 8891d5e

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ The data structure is as follows, with five keys for each item:
2323
"url": "https://www.google.co.uk",
2424
"domain": "google.co.uk",
2525
"secure": True,
26-
"value": 5,
26+
"value": 5
2727
},
2828
{
2929
"name": "Facebook",
3030
"url": "https://developers.facebook.com/blog/post/2018/10/02/facebook-login-update/",
3131
"domain": "facebook.com",
3232
"secure": True,
33-
"value": 4,
33+
"value": 4
3434
}
3535
]
3636
```
@@ -61,7 +61,7 @@ Find and return a new list of data where each item's value key is equal to or gr
6161
"url": "https://developers.facebook.com/blog/post/2018/10/02/facebook-login-update/",
6262
"domain": "facebook.com",
6363
"secure": True,
64-
"value": 4,
64+
"value": 4
6565
}
6666
```
6767

@@ -77,7 +77,7 @@ Amend the list so each domain key value is prepended with the string `www.`
7777
"url": "https://developers.facebook.com/blog/post/2018/10/02/facebook-login-update/",
7878
"domain": "www.facebook.com",
7979
"secure": True,
80-
"value": 4,
80+
"value": 4
8181
}
8282
```
8383

@@ -95,7 +95,7 @@ The list should be cleansed and returned so the secure keys are accurate.
9595
"url": "https://www.bing.com/search?q=athlete&qs=n&form=QBLH&sp=-1&pq=athlete&sc=8-7&sk=&cvid=53830DD7FB2E47B7A5D9CF27F106BC9A",
9696
"domain": "bing.com",
9797
"secure": True,
98-
"value": 3,
98+
"value": 3
9999
}
100100
```
101101

@@ -112,14 +112,14 @@ Add up all the value keys in the list and return an integer.
112112
"url": "https://www.google.co.uk",
113113
"domain": "google.co.uk",
114114
"secure": True,
115-
"value": 5,
115+
"value": 5
116116
},
117117
{
118118
"name": "Facebook",
119119
"url": "https://developers.facebook.com/blog/post/2018/10/02/facebook-login-update/",
120120
"domain": "facebook.com",
121121
"secure": True,
122-
"value": 4,
122+
"value": 4
123123
}
124124
]
125125
```

websites/resources/data.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,55 +8,55 @@
88
"url": "https://www.google.co.uk",
99
"domain": "google.co.uk",
1010
"secure": True,
11-
"value": 5,
11+
"value": 5
1212
},
1313
{
1414
"name": "Facebook",
1515
"url": "https://developers.facebook.com/blog/post/2018/10/02/facebook-login-update/",
1616
"domain": "facebook.com",
1717
"secure": True,
18-
"value": 4,
18+
"value": 4
1919
},
2020
{
2121
"name": "Bing",
2222
"url": "https://www.bing.com/search?q=athlete&qs=n&form=QBLH&sp=-1&pq=athlete&sc=8-7&sk=&cvid=53830DD7FB2E47B7A5D9CF27F106BC9A",
2323
"domain": "bing.com",
2424
"secure": False,
25-
"value": 3,
25+
"value": 3
2626
},
2727
{
2828
"name": "Ask",
2929
"url": "https://uk.ask.com/web?o=0&l=dir&qo=serpSearchTopBox&q=jupiter",
3030
"domain": "ask.com",
3131
"secure": False,
32-
"value": 1,
32+
"value": 1
3333
},
3434
{
3535
"name": "Duck Duck Go",
3636
"url": "http://duckduckgo.com/?q=plane&t=h_&ia=web",
3737
"domain": "duckduckgo.com",
3838
"secure": True,
39-
"value": 2,
39+
"value": 2
4040
},
4141
{
4242
"name": "Vimeo",
4343
"url": "https://vimeo.com/53812885",
4444
"domain": "vimeo.com",
4545
"secure": False,
46-
"value": 2,
46+
"value": 2
4747
},
4848
{
4949
"name": "YouTube",
5050
"url": "https://www.youtube.com/watch?v=09Cd7NKKvDc",
5151
"domain": "youtube.com",
5252
"secure": True,
53-
"value": 5,
53+
"value": 5
5454
},
5555
{
5656
"name": "Daily Motion",
5757
"url": "http://www.dailymotion.com/search/football",
5858
"domain": "dailymotion.com",
5959
"secure": True,
60-
"value": 1,
60+
"value": 1
6161
}
6262
]

0 commit comments

Comments
 (0)